ClassRadEllipseGeometry
Defines an ellipse geometry with a specified center point and radii. This class provides properties to set and retrieve the center and radius of the ellipse, and notifies when these properties change. Useful for drawing and manipulating ellipse shapes in graphics or UI scenarios.
Definition
Namespace:Telerik.Maui.Controls.Paths
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class RadEllipseGeometry : RadGeometry, INotifyPropertyChanged
Inheritance: objectNotifyPropertyChangedBaseRadGeometryRadEllipseGeometry
Implements:
Inherited Members
Constructors
RadEllipseGeometry()
Initializes a new instance of the ellipse geometry.
Declaration
public RadEllipseGeometry()
RadEllipseGeometry(Point, Size)
Initializes a new instance of the ellipse geometry.
Declaration
public RadEllipseGeometry(Point center, Size radius)
Parameters
center
Point
Specifies the center point of the ellipse geometry.
radius
Size
Specifies the radius of the ellipse geometry.
Example
// Create an ellipse geometry with center at (50, 50) and radius (30, 20)
var ellipse = new RadEllipseGeometry(new Point(50, 50), new Size(30, 20));
Properties
Center
Gets or sets the center point of the ellipse geometry.
Declaration
public Point Center { get; set; }
Property Value
Point
Example
// Set the center of the ellipse to (100, 75)
var ellipse = new RadEllipseGeometry();
ellipse.Center = new Point(100, 75);
Radius
Gets or sets the radius of the ellipse geometry.
Declaration
public Size Radius { get; set; }
Property Value
Size
Example
// Set the radius of the ellipse to (40, 25)
var ellipse = new RadEllipseGeometry();
ellipse.Radius = new Size(40, 25);