Class CmxRectangleSpec

Class CmxRectangleSpec

Namespace: Aspose.Imaging.FileFormats.Cmx.ObjectModel.Specs
Assembly: Aspose.Imaging.dll (25.2.0)

Represents geometric info specified for a rectangle.

public class CmxRectangleSpec : ICmxObjectSpec

Inheritance

objectCmxRectangleSpec

Implements

ICmxObjectSpec

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

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

float

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

float

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

float

Height

Gets or sets the height of the rectangle. Measures in common document distance units.

public float Height { get; set; }

Property Value

float

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

float

Width

Gets or sets the width of the rectangle. Measures in common document distance units.

public float Width { get; set; }

Property Value

float

Methods

Equals(CmxRectangleSpec)

Check if objects are equal.

protected bool Equals(CmxRectangleSpec other)

Parameters

other CmxRectangleSpec

The other object.

Returns

bool

The equality comparison result.

Equals(object)

Check if objects are equal.

public override bool Equals(object obj)

Parameters

obj object

The 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 System.String that represents this instance.

public override string ToString()

Returns

string

A System.String that represents this instance.