@Deprecated public final class Dimensions extends XmpComplexType
Containing dimensions for a drawn object.
Constructor and Description |
---|
Dimensions()
Deprecated.
Initializes a new instance of the
Dimensions class. |
Dimensions(float width,
float height)
Deprecated.
Initializes a new instance of the
Dimensions class. |
Modifier and Type | Method and Description |
---|---|
float |
getHeight()
Deprecated.
Gets or sets height.
|
String |
getUnits()
Deprecated.
Gets units.
|
float |
getWidth()
Deprecated.
Gets or sets width.
|
String |
getXmpRepresentation()
Deprecated.
Returns string contained value in XMP format.
|
void |
setHeight(float value)
Deprecated.
Gets or sets height.
|
void |
setUnits(String value)
Deprecated.
Sets units.
|
void |
setWidth(float value)
Deprecated.
Gets or sets width.
|
getNamespaceUri, getPrefix
toBool, toDateTime, toFloat, toGuid, toInt, toString, toStringArray
public Dimensions()
Initializes a new instance of the Dimensions
class.
public Dimensions(float width, float height)
Initializes a new instance of the Dimensions
class.
width
- The width.height
- The height.public final float getWidth()
Gets or sets width.
com.aspose.ms.System.ArgumentOutOfRangeException
- Width could not be less than zero.
Value:
The width.public final void setWidth(float value)
Gets or sets width.
com.aspose.ms.System.ArgumentOutOfRangeException
- Width could not be less than zero.
Value:
The width.public final float getHeight()
Gets or sets height.
com.aspose.ms.System.ArgumentOutOfRangeException
- Height could not be less than zero.
Value:
The height.public final void setHeight(float value)
Gets or sets height.
com.aspose.ms.System.ArgumentOutOfRangeException
- Height could not be less than zero.
Value:
The height.public final String getUnits()
Gets units.
public final void setUnits(String value)
Sets units.
value
- Units: inch, mm, pixel etc.public String getXmpRepresentation()
Returns string contained value in XMP format.
getXmpRepresentation
in interface IXmpType
getXmpRepresentation
in class XmpComplexType
string
contained XMP representation.Copyright © 2020. All rights reserved.