Class
StarShape

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

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

Inheritance: objectMarshalByRefObjectComponentElementShapeStarShape

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

StarShape()

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

Declaration

cs-api-definition
public StarShape()

StarShape(int, float)

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

Declaration

cs-api-definition
public StarShape(int arms, float innerRadiusRatio)

Parameters

arms

int

The number of arms the star will have.

innerRadiusRatio

float

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

Properties

Arms

Gets or sets the number of arms.

Declaration

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

Property Value

int

InnerRadiusRatio

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

Declaration

cs-api-definition
public float InnerRadiusRatio { get; set; }

Property Value

float

Methods

CreatePath(Rectangle)

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

Declaration

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

Parameters

bounds

Rectangle

Returns

GraphicsPath

Overrides ElementShape.CreatePath(Rectangle)