New to Telerik UI for .NET MAUIStart a free 30-day trial

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

Constructors

Initializes a new instance of the ellipse geometry.

C#
public RadEllipseGeometry()

Initializes a new instance of the ellipse geometry.

C#
public RadEllipseGeometry(Point center, Size radius)
Parameters:centerPoint

Specifies the center point of the ellipse geometry.

radiusSize

Specifies the radius of the ellipse geometry.

Example:
csharp
// 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

Point

Gets or sets the center point of the ellipse geometry.

C#
public Point Center { get; set; }
Example:
csharp
// Set the center of the ellipse to (100, 75)
var ellipse = new RadEllipseGeometry();
ellipse.Center = new Point(100, 75);

Radius

Size

Gets or sets the radius of the ellipse geometry.

C#
public Size Radius { get; set; }
Example:
csharp
// Set the radius of the ellipse to (40, 25)
var ellipse = new RadEllipseGeometry();
ellipse.Radius = new Size(40, 25);