Class
PolygonShapeBase

Represents the base class for all polygon shapes.

Definition

Constructors

PolygonShapeBase(int, double, int)

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

Declaration

cs-api-definition
protected PolygonShapeBase(int vertexCount, double angle, int rounding)

Parameters

vertexCount

int

The number of vertices of the polygon.

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

VertexCount

TODO: Add documentation.

Declaration

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

Property Value

int

Methods

CreateRawShape()

Creates the raw shape.

Declaration

cs-api-definition
protected override void CreateRawShape()

Overrides RoundedCornerShape.CreateRawShape()

GetPoints(RectangleF)

Gets the points of this shape.

Declaration

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

Parameters

bounds

RectangleF

The bound of the shape.

Returns

PointF[]

A point array representing the points of this shape.

GetPointsCore(PointF, int, double, double)

Gets the core points for this shape.

Declaration

cs-api-definition
protected static PointF[] GetPointsCore(PointF center, int segmentCount, double radius, double angle)

Parameters

center

PointF

The center of the shape.

segmentCount

int

The number of segments of the shape.

radius

double

The radius of the shape.

angle

double

The angle of rotation of the shape.

Returns

PointF[]

A point array representing the core points of this shape.