public final class Dimensions extends ComplexTypeBase
Containing dimensions for a drawn object.
| Constructor and Description |
|---|
Dimensions()
Initializes a new instance of the
Dimensions class. |
Dimensions(float width,
float height)
Initializes a new instance of the
Dimensions class. |
| Modifier and Type | Method and Description |
|---|---|
float |
getHeight()
Gets or sets the height.
|
String |
getUnits()
Gets or sets units.
|
float |
getWidth()
Gets or sets the width.
|
String |
getXmpRepresentation()
Gets the string contained value in XMP format.
|
void |
setHeight(float value)
Gets or sets the height.
|
void |
setUnits(String value)
Gets or sets units.
|
void |
setWidth(float value)
Gets or sets the width.
|
getNamespaceUri, getPrefixpublic 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 float getWidth()
Gets or sets the width.
com.aspose.ms.System.ArgumentOutOfRangeException - value;Width could not be less than zero
Value:
The width.public void setWidth(float value)
Gets or sets the width.
com.aspose.ms.System.ArgumentOutOfRangeException - value;Width could not be less than zero
Value:
The width.public float getHeight()
Gets or sets the height.
com.aspose.ms.System.ArgumentOutOfRangeException - value;Height could not be less than zero
Value:
The height.public void setHeight(float value)
Gets or sets the height.
com.aspose.ms.System.ArgumentOutOfRangeException - value;Height could not be less than zero
Value:
The height.public String getUnits()
Gets or sets units.
For example: inch, mm, pixel, pica, point etc. Value: The units.public void setUnits(String value)
Gets or sets units.
For example: inch, mm, pixel, pica, point etc. Value: The units.public String getXmpRepresentation()
Gets the string contained value in XMP format.
getXmpRepresentation in interface IXmpTypegetXmpRepresentation in class ComplexTypeBase