Class
StarShape

Represents a star shape.

Definition

Constructors

StarShape()

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

Declaration

cs-api-definition
public StarShape()

StarShape(int)

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

Declaration

cs-api-definition
public StarShape(int vertexCount)

Parameters

vertexCount

int

The number of vertices of the shape.

StarShape(int, int, double, int)

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

Declaration

cs-api-definition
public StarShape(int vertexCount, int concavity, double angle, int rounding)

Parameters

vertexCount

int

The number of vertices of the shape.

concavity

int

The concavity in percent of the shape.

angle

double

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

rounding

int

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

Properties

Concavity

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

Declaration

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

Property Value

int

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

Methods

Clone()

TODO: Add documentation.

Declaration

cs-api-definition
public override object Clone()

Returns

object

Overrides ShapeBase.Clone()

GetPoints(RectangleF)

Gets the points of this shape.

Declaration

cs-api-definition
protected override PointF[] GetPoints(RectangleF bounds)

Parameters

bounds

RectangleF

The bound of the shape.

Returns

PointF[]

A point array representing the points of this shape.

Overrides PolygonShapeBase.GetPoints(RectangleF)

ToString()

Returns a human-readable representation ot this StarShape.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A human-readable representation ot this StarShape.

Overrides object.ToString()