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

Definition

Constructors

Creates a new star shape with the specified number of arms and inner radius.

C#
public StarShape()

Creates a new star shape with the specified number of arms and inner radius.

C#
public StarShape(int arms, float innerRadiusRatio)
Parameters:armsint

The number of arms the star will have.

innerRadiusRatiofloat

The ratio between the inner and out ration of the star.

Properties

Gets or sets the number of arms.

C#
public int Arms { get; set; }

Gets or sets the ration between the inner and out radius.

C#
public float InnerRadiusRatio { get; set; }

Methods

Creates Star like shape. Overrides CreatePath method in the base class ElementShape.

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

GraphicsPath

Overrides: ElementShape.CreatePath(Rectangle)