EllipseGeometry Class
Definition
Represents the geometry of an ellipse or circle.
public class EllipseGeometry
Constructors
| Name | Description |
|---|---|
| EllipseGeometry (2 overloads) | Initializes a new instance of the Avalonia.Media.EllipseGeometry class. |
EllipseGeometry overloads
EllipseGeometry Constructor
Initializes a new instance of the Avalonia.Media.EllipseGeometry class.
public EllipseGeometry()
EllipseGeometry Constructor
Initializes a new instance of the Avalonia.Media.EllipseGeometry class.
public EllipseGeometry(Avalonia.Rect rect)
Parameters
rect Avalonia.Rect
The rectangle that the ellipse should fill.
Methods
| Name | Description |
|---|---|
| Clone | Clones the geometry. |
| Combine | Combines the two geometries using the specified Avalonia.Media.GeometryCombineMode and applies the specified transform to the resulting geometry. Inherited from Geometry. |
| FillContains | Indicates whether the geometry's fill contains the specified point. Inherited from Geometry. |
| GetRenderBounds | Gets the geometry's bounding rectangle with the specified pen. Inherited from Geometry. |
| GetWidenedGeometry | Gets a Avalonia.Media.Geometry that is the shape defined by the stroke on the Geometry produced by the specified Pen. Inherited from Geometry. |
| Parse | Creates a Avalonia.Media.Geometry from a string. Inherited from Geometry. |
| StrokeContains | Indicates whether the geometry's stroke contains the specified point. Inherited from Geometry. |
| TryGetPointAndTangentAtDistance | Inherited from Geometry. |
| TryGetPointAtDistance | Inherited from Geometry. |
| TryGetSegment | Inherited from Geometry. |
| Bind (8 overloads) | Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject. |
| CheckAccess | Returns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject. |
| ClearValue (4 overloads) | Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject. |
| CoerceValue | Coerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject. |
| Equals | Compares two objects using reference equality. Inherited from AvaloniaObject. |
| GetBaseValue | Inherited from AvaloniaObject. |
| GetHashCode | Gets the hash code for the object. Inherited from AvaloniaObject. |
| GetValue (3 overloads) | Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| IsAnimating | Checks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject. |
| IsSet | Checks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject. |
| SetCurrentValue (2 overloads) | Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject. |
| SetValue (3 overloads) | Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| VerifyAccess | Checks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject. |
Clone Method
Clones the geometry.
public Avalonia.Media.Geometry Clone()
Returns
A cloned geometry.
Properties
| Name | Description |
|---|---|
| Center | Gets or sets a point that defines the center of the ellipse. |
| RadiusX | Gets or sets a double that defines the radius in the X-axis of the ellipse. |
| RadiusY | Gets or sets a double that defines the radius in the Y-axis of the ellipse. |
| Rect | Gets or sets a rect that defines the bounds of the ellipse. |
| Bounds | Gets the geometry's bounding rectangle. Inherited from Geometry. |
| ContourLength | Gets the geometry's total length as if all its contours are placed in a straight line. Inherited from Geometry. |
| Transform | Gets or sets a transform to apply to the geometry. Inherited from Geometry. |
| Dispatcher | Returns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject. |
| Item | Inherited from AvaloniaObject. |
Center Property
Gets or sets a point that defines the center of the ellipse.
public Avalonia.Point Center { get; set; }
Remarks
In order for this property to be used, Avalonia.Media.EllipseGeometry.Rect must not be set (equal to the default Avalonia.Rect value).
RadiusX Property
Gets or sets a double that defines the radius in the X-axis of the ellipse.
public double RadiusX { get; set; }
Remarks
In order for this property to be used, Avalonia.Media.EllipseGeometry.Rect must not be set (equal to the default Avalonia.Rect value).
RadiusY Property
Gets or sets a double that defines the radius in the Y-axis of the ellipse.
public double RadiusY { get; set; }
Remarks
In order for this property to be used, Avalonia.Media.EllipseGeometry.Rect must not be set (equal to the default Avalonia.Rect value).
Rect Property
Gets or sets a rect that defines the bounds of the ellipse.
public Avalonia.Rect Rect { get; set; }
Remarks
When set, this takes priority over the other properties that define an ellipse using a center point and X/Y-axis radii.
Fields
| Name | Description |
|---|---|
| CenterProperty | Defines the Avalonia.Media.EllipseGeometry.Center property. |
| RadiusXProperty | Defines the Avalonia.Media.EllipseGeometry.RadiusX property. |
| RadiusYProperty | Defines the Avalonia.Media.EllipseGeometry.RadiusY property. |
| RectProperty | Defines the Avalonia.Media.EllipseGeometry.Rect property. |
| TransformProperty | Defines the Avalonia.Media.Geometry.Transform property. Inherited from Geometry. |
CenterProperty Field
Defines the Avalonia.Media.EllipseGeometry.Center property.
public Avalonia.StyledProperty<TValue><Avalonia.Point> CenterProperty
RadiusXProperty Field
Defines the Avalonia.Media.EllipseGeometry.RadiusX property.
public Avalonia.StyledProperty<TValue><double> RadiusXProperty
RadiusYProperty Field
Defines the Avalonia.Media.EllipseGeometry.RadiusY property.
public Avalonia.StyledProperty<TValue><double> RadiusYProperty
RectProperty Field
Defines the Avalonia.Media.EllipseGeometry.Rect property.
public Avalonia.StyledProperty<TValue><Avalonia.Rect> RectProperty
Events
| Name | Description |
|---|---|
| Changed | Raised when the geometry changes. Inherited from Geometry. |
| PropertyChanged | Raised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject. |