New to Telerik UI for WinFormsStart a free 30-day trial

Represents a donut (ring-shaped) element shape with configurable thickness.

Definition

Constructors

C#
public DonutShape()

Properties

Gets or sets the thickness of the donut ring in pixels.

C#
public int Thickness { get; set; }
Property Value:

The thickness of the ring. Default is 10 pixels.

Methods

Creates a donut-shaped graphics path with an outer ellipse and inner hole.

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

The bounding rectangle for the donut shape.

Returns:

GraphicsPath

A GraphicsPath representing the donut shape.

Overrides: ElementShape.CreatePath(Rectangle)