New to Telerik UI for WinForms? Start a free 30-day trial

Represents an ellipse shape that can render circles and ellipses based on the provided bounds.

When the bounds are square, this shape renders as a perfect circle. When the bounds have different width and height, it renders as an ellipse that fits within the specified rectangle.

Definition

Constructors

C#
public EllipseShape()

Methods

Creates an ellipse path that fits within the specified bounds.

C#
public override GraphicsPath CreatePath(Rectangle bounds)
Parameters:boundsRectangle

The rectangle defining the bounds for the ellipse.

Returns:

GraphicsPath

A GraphicsPath representing an ellipse within the specified bounds.

Overrides: ElementShape.CreatePath(Rectangle)