Table of Contents

Class EllipseGeometry

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Represents the geometry of an ellipse or circle.

public class EllipseGeometry : Geometry, INotifyPropertyChanged
Inheritance
EllipseGeometry
Implements
Inherited Members
Extension Methods

Constructors

EllipseGeometry()

Initializes a new instance of the EllipseGeometry class.

public EllipseGeometry()

EllipseGeometry(Rect)

Initializes a new instance of the EllipseGeometry class.

public EllipseGeometry(Rect rect)

Parameters

rect Rect

The rectangle that the ellipse should fill.

Fields

CenterProperty

Defines the Center property.

public static readonly StyledProperty<Point> CenterProperty

Field Value

StyledProperty<Point>

RadiusXProperty

Defines the RadiusX property.

public static readonly StyledProperty<double> RadiusXProperty

Field Value

StyledProperty<double>

RadiusYProperty

Defines the RadiusY property.

public static readonly StyledProperty<double> RadiusYProperty

Field Value

StyledProperty<double>

RectProperty

Defines the Rect property.

public static readonly StyledProperty<Rect> RectProperty

Field Value

StyledProperty<Rect>

Properties

Center

Gets or sets a point that defines the center of the ellipse.

public Point Center { get; set; }

Property Value

Point

Remarks

In order for this property to be used, Rect must not be set (equal to the default Rect value).

RadiusX

Gets or sets a double that defines the radius in the X-axis of the ellipse.

public double RadiusX { get; set; }

Property Value

double

Remarks

In order for this property to be used, Rect must not be set (equal to the default Rect value).

RadiusY

Gets or sets a double that defines the radius in the Y-axis of the ellipse.

public double RadiusY { get; set; }

Property Value

double

Remarks

In order for this property to be used, Rect must not be set (equal to the default Rect value).

Rect

Gets or sets a rect that defines the bounds of the ellipse.

public Rect Rect { get; set; }

Property Value

Rect

Remarks

When set, this takes priority over the other properties that define an ellipse using a center point and X/Y-axis radii.

Methods

Clone()

Clones the geometry.

public override Geometry Clone()

Returns

Geometry

A cloned geometry.