Class CmxRectangleSpec
- Namespace
- Aspose.Imaging.FileFormats.Cmx.ObjectModel.Specs
- Assembly
- Aspose.Imaging.dll
Represents geometric info specified for a rectangle.
public class CmxRectangleSpec : ICmxObjectSpec
- Inheritance
-
CmxRectangleSpec
- Implements
- Inherited Members
Constructors
CmxRectangleSpec()
public CmxRectangleSpec()
Properties
Angle
Gets or sets the angle of rotation of the rectangle. Measures in radians.
public float Angle { get; set; }
Property Value
CenterX
Gets or sets the X coordinate for the center of the rectangle. Measures in common document distance units.
public float CenterX { get; set; }
Property Value
CenterY
Gets or sets the Y coordinate for the center of the rectangle. Measures in common document distance units.
public float CenterY { get; set; }
Property Value
Height
Gets or sets the height of the rectangle. Measures in common document distance units.
public float Height { get; set; }
Property Value
Radius
Gets or sets the radius of rounded rectangle corners.
If its value is 0
then the rectangle has not rounded corners.
Measures in common document distance units.
public float Radius { get; set; }
Property Value
Width
Gets or sets the width of the rectangle. Measures in common document distance units.
public float Width { get; set; }
Property Value
Methods
Equals(CmxRectangleSpec)
Check if objects are equal.
protected bool Equals(CmxRectangleSpec other)
Parameters
other
CmxRectangleSpecThe other object.
Returns
- bool
The equality comparison result.
Equals(object)
Check if objects are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe other object.
Returns
- bool
The equality comparison result.
GetHashCode()
Get hash code of the current object.
public override int GetHashCode()
Returns
- int
The hash code.
ToString()
Returns a string that represents this instance.
public override string ToString()