Class CmxEllipseSpec

Class CmxEllipseSpec

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

Represents geometric info specified for an ellipse.

public class CmxEllipseSpec : ICmxObjectSpec
{
    public double X { get; set; }
    public double Y { get; set; }
    public double Width { get; set; }
    public double Height { get; set; }
}

Inheritance

object CmxEllipseSpec

Implements

ICmxObjectSpec

Inherited Members

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

Constructors

CmxEllipseSpec()

public CmxEllipseSpec()
   {
   }

Properties

Angle1

Gets or sets the first angle used for defining of pie sector.Does no affect if Aspose.Imaging.FileFormats.Cmx.ObjectModel.Specs.CmxEllipseSpec.Pie is ‘false’.Measures in radians.

public float Angle1
   {
      get;
      set;
   }

Property Value

float

Angle2

Gets or sets the second angle used for defining of pie sector.Does no affect if Aspose.Imaging.FileFormats.Cmx.ObjectModel.Specs.CmxEllipseSpec.Pie is ‘false’.Measures in radians.

public float Angle2
   {
      get;
      set;
   }

Property Value

float

BoundingBox

Gets or sets the bounding box.

public RectangleF BoundingBox
   {
      get;
      set;
   }

Property Value

RectangleF

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

DiameterX

Gets or sets the diameter for X dimension of the rectangle.Measures in common document distance units.

public float DiameterX
    {
        get;
        set;
    }

Property Value

float

DiameterY

Gets or sets the diameter for Y dimension of the rectangle.Measures in common document distance units.

public float DiameterY
   {
      get;
      set;
   }

Property Value

float

Pie

Gets or sets a value indicating whether this Aspose.Imaging.FileFormats.Cmx.ObjectModel.Specs.CmxEllipseSpec is a pie.

public bool Pie
   {
      get;
      set;
   }

Property Value

bool

Rotation

Gets or sets the angle of rotation of the ellipse.Measures in radians.

public float Rotation
   {
      get;
      set;
   }

Property Value

float

Methods

Equals(CmxEllipseSpec)

Check if objects are equal.

protected bool Equals(CmxEllipseSpec other)
   {
      return (
          this.X == other.X &&
          this.Y == other.Y &&
          this.RadiusX == other.RadiusX &&
          this.RadiusY == other.RadiusY
      );
   }

Parameters

other CmxEllipseSpec

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()
    {
        return base.GetHashCode();
    }

Returns

int

The hash code.

ToString()

Returns a System.String that represents this instance.

public override string ToString()
{
}
In the above example, I have reformatted the provided code by adding proper indentation and newline to make it more readable according to C# conventions. The logic or behavior of the `ToString()` method remains unchanged.

Returns

string

A System.String that represents this instance.

 English