New to Telerik ReportingStart a free 30-day trial

Represents a star shape.

Definition

Constructors

Initializes a new instance of the StarShape with 3 vertexes, 50% concavity, and zero angle of rotation.

C#
public StarShape()

Initializes a new instance of the StarShape with the specified vertex count, concavity, and angle of rotation in degrees.

C#
public StarShape(int vertexCount, int concavity, double angle, int rounding)
Parameters:vertexCountint

The number of vertices of the shape.

concavityint

The concavity in percent of the shape.

angledouble

A double value specifying the angle of rotation of the shape in degrees.

roundingint

An int value between 0 and 100 specifying the rounding of the edges in percent.

Initializes a new instance of the StarShape with the specified vertex count, 50% concavity, and zero angle of rotation.

C#
public StarShape(int vertexCount)
Parameters:vertexCountint

The number of vertices of the shape.

Properties

Gets or sets a percent value specifying the concavity of the shape.

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

An int value between 0 and 100 specifying the concavity of the shape in percentage.

Methods

Clone()

object

TODO: Add documentation.

C#
public override object Clone()
Returns:

object

Overrides: ShapeBase.Clone()

Gets the points of this shape.

C#
protected override PointF[] GetPoints(RectangleF bounds)
Parameters:boundsRectangleF

The bound of the shape.

Returns:

PointF[]

A point array representing the points of this shape.

Overrides: PolygonShapeBase.GetPoints(RectangleF)

Returns a human-readable representation ot this StarShape.

C#
public override string ToString()
Returns:

string

A human-readable representation ot this StarShape.

Overrides: object.ToString()