New to Telerik ReportingStart a free 30-day trial

Represents the base class for all polygon shapes.

Definition

Constructors

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

C#
protected PolygonShapeBase(int vertexCount, double angle, int rounding)
Parameters:vertexCountint

The number of vertices of the polygon.

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.

Properties

TODO: Add documentation.

C#
public int VertexCount { get; set; }

Methods

Creates the raw shape.

C#
protected override void CreateRawShape()

Overrides: RoundedCornerShape.CreateRawShape()

Gets the points of this shape.

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

The bound of the shape.

Returns:

PointF[]

A point array representing the points of this shape.

Gets the core points for this shape.

C#
protected static PointF[] GetPointsCore(PointF center, int segmentCount, double radius, double angle)
Parameters:centerPointF

The center of the shape.

segmentCountint

The number of segments of the shape.

radiusdouble

The radius of the shape.

angledouble

The angle of rotation of the shape.

Returns:

PointF[]

A point array representing the core points of this shape.