Class
DonutShape

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

Definition

Namespace:Telerik.WinControls.Tests

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
[ComVisible(false)]
public class DonutShape : ElementShape, IComponent, IDisposable

Inheritance: objectMarshalByRefObjectComponentElementShapeDonutShape

Implements: IComponentIDisposable

Inherited Members ElementShape.GetElementShape(RadElement)ElementShape.GetElementContour(RadElement)ElementShape.GetElementContour(Rectangle)ElementShape.CreateRegion(Rectangle)ElementShape.GetBounds(RadElement)ElementShape.CreatePath(RectangleF)ElementShape.CreateContour(Rectangle)ElementShape.MirrorPath(GraphicsPath, RectangleF)ElementShape.ShouldMirrorPath()ElementShape.SerializeProperties()ElementShape.DeserializeProperties(string)ElementShape.Dispose(bool)ElementShape.IsRightToLeftComponent.Dispose()Component.GetService(Type)Component.ToString()Component.CanRaiseEventsComponent.EventsComponent.SiteComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

DonutShape()

Declaration

cs-api-definition
public DonutShape()

Properties

Thickness

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

Declaration

cs-api-definition
public int Thickness { get; set; }

Property Value

int

The thickness of the ring. Default is 10 pixels.

Methods

CreatePath(Rectangle)

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

Declaration

cs-api-definition
public override GraphicsPath CreatePath(Rectangle bounds)

Parameters

bounds

Rectangle

The bounding rectangle for the donut shape.

Returns

GraphicsPath

A GraphicsPath representing the donut shape.

Overrides ElementShape.CreatePath(Rectangle)