Class Dimensions
Namespace: Aspose.Imaging.Xmp.Types.Complex.Dimensions
Assembly: Aspose.Imaging.dll (25.4.0)
Containing dimensions for a drawn object.
[JsonObject(MemberSerialization.OptIn)]
public sealed class Dimensions : ComplexTypeBase, IXmpType, ICloneable
Inheritance
object ← XmpTypeBase ← ComplexTypeBase ← Dimensions
Implements
Inherited Members
ComplexTypeBase.GetXmpRepresentation() , ComplexTypeBase.Prefix , ComplexTypeBase.NamespaceUri , XmpTypeBase.GetXmpRepresentation() , XmpTypeBase.ToString() , XmpTypeBase.Clone() , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
Dimensions()
Initializes a new instance of the Aspose.Imaging.Xmp.Types.Complex.Dimensions.Dimensions class.
[JsonConstructor]
public Dimensions()
Dimensions(float, float)
Initializes a new instance of the Aspose.Imaging.Xmp.Types.Complex.Dimensions.Dimensions class.
public Dimensions(float width, float height)
Parameters
width
float
The width.
height
float
The height.
Properties
Height
Gets or sets the height.
public float Height { get; set; }
Property Value
Exceptions
value;Height could not be less than zero
Units
Gets or sets units.
[JsonProperty]
public string Units { get; set; }
Property Value
Examples
For example: inch, mm, pixel, pica, point etc.
Width
Gets or sets the width.
public float Width { get; set; }
Property Value
Exceptions
value;Width could not be less than zero
Methods
GetXmpRepresentation()
Gets the string contained value in XMP format.
public override string GetXmpRepresentation()
Returns
Returns the string contained value in XMP format.