Class Dimensions
Containing dimensions for a drawn object.
public sealed class Dimensions : ComplexTypeBase, IXmpType
- Inheritance
-
Dimensions
- Implements
- Inherited Members
Constructors
Dimensions()
Initializes a new instance of the Dimensions class.
public Dimensions()
Dimensions(float, float)
Initializes a new instance of the Dimensions class.
public Dimensions(float width, float height)
Parameters
Properties
Height
Gets or sets the height.
public float Height { get; set; }
Property Value
- float
The height.
Exceptions
- ArgumentOutOfRangeException
value;Height could not be less than zero
Units
Gets or sets units.
public string Units { get; set; }
Property Value
- string
The units.
Examples
For example: inch, mm, pixel, pica, point etc.
Width
Gets or sets the width.
public float Width { get; set; }
Property Value
- float
The width.
Exceptions
- ArgumentOutOfRangeException
value;Width could not be less than zero
Methods
GetXmpRepresentation()
Gets the string contained value in XMP format.
public override string GetXmpRepresentation()
Returns
- string
Returns the string contained value in XMP format.