Class
ShapeBase

Base class for all shape types. The examples below illustrate how to inherit it when creating custom shapes

Definition

Namespace:Telerik.Reporting.Drawing.Shapes

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(ExpandableObjectConverter))]
public abstract class ShapeBase

Inheritance: objectShapeBase

Derived Classes: EllipseShapeLineShapeRoundedCornerShape

Constructors

ShapeBase()

Initializes a new instance of the ShapeBase with zero angle of rotation.

Declaration

cs-api-definition
protected ShapeBase()

ShapeBase(double)

Initializes a new instance of the ShapeBase with the specified angle of rotation in degrees.

Declaration

cs-api-definition
protected ShapeBase(double startAngle)

Parameters

startAngle

double

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

Properties

AngleInRad

Gets the angle of rotation of this shape in radians.

Declaration

cs-api-definition
protected double AngleInRad { get; }

Property Value

double

A double value representing the angle of rotation of this shape in radians.

Bounds

Gets or sets the bounds of this shape.

Declaration

cs-api-definition
[Browsable(false)]
public RectangleF Bounds { get; set; }

Property Value

RectangleF

A RectangleF structure representing the bounds of this shape.

StartAngle

TODO: Add documentation.

Declaration

cs-api-definition
public double StartAngle { get; set; }

Property Value

double

Methods

AddBeziers(PointF[])

Adds a Bezier curve to the shape.

Declaration

cs-api-definition
public void AddBeziers(PointF[] points)

Parameters

points

PointF[]

A point array representing the points of the Bezier curve.

AddEllipse(RectangleF)

Adds an ellipse to the shape.

Declaration

cs-api-definition
public void AddEllipse(RectangleF bounds)

Parameters

bounds

RectangleF

The bounding rectangle of the ellipse.

AddLine(PointF, PointF)

Adds a straight line to the shape.

Declaration

cs-api-definition
public void AddLine(PointF point1, PointF point2)

Parameters

point1

PointF

The statr point of the line.

point2

PointF

The end point of the line.

AddLines(PointF[], bool)

Adds a series of straight lines to the shape.

Declaration

cs-api-definition
public void AddLines(PointF[] points, bool close)

Parameters

points

PointF[]

A point array representing the starting and ending points of the lines.

close

bool

A boolean value specifying whether to close the shape.

Clone()

TODO: Add documentation.

Declaration

cs-api-definition
public abstract object Clone()

Returns

object

CreateShape()

When overridden this method should create the shape.

Declaration

cs-api-definition
protected abstract void CreateShape()

GetEnumerator()

Internal use only

Declaration

cs-api-definition
public IEnumerator GetEnumerator()

Returns

IEnumerator

RecreateShape()

Recreates the shape.

Declaration

cs-api-definition
protected void RecreateShape()