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:
[TypeConverter(typeof(ExpandableObjectConverter))]
public abstract class ShapeBase
Inheritance: objectShapeBase
Derived Classes:
Constructors
Initializes a new instance of the ShapeBase with zero angle of rotation.
protected ShapeBase()
Initializes a new instance of the ShapeBase with the specified angle of rotation in degrees.
protected ShapeBase(double startAngle)
A double value specifying the angle of rotation of the shape in degrees.
Properties
AngleInRad
double
Gets the angle of rotation of this shape in radians.
protected double AngleInRad { get; }
A double value representing the angle of rotation of this shape in radians.
Bounds
RectangleF
Gets or sets the bounds of this shape.
[Browsable(false)]
public RectangleF Bounds { get; set; }
A RectangleF structure representing the bounds of this shape.
StartAngle
double
TODO: Add documentation.
public double StartAngle { get; set; }
Methods
Adds a Bezier curve to the shape.
public void AddBeziers(PointF[] points)
A point array representing the points of the Bezier curve.
Adds an ellipse to the shape.
public void AddEllipse(RectangleF bounds)
The bounding rectangle of the ellipse.
Adds a straight line to the shape.
public void AddLine(PointF point1, PointF point2)
The statr point of the line.
point2PointFThe end point of the line.
Adds a series of straight lines to the shape.
public void AddLines(PointF[] points, bool close)
A point array representing the starting and ending points of the lines.
closeboolA boolean value specifying whether to close the shape.
Clone()
object
TODO: Add documentation.
public abstract object Clone()
object
When overridden this method should create the shape.
protected abstract void CreateShape()
GetEnumerator()
IEnumerator
Internal use only
public IEnumerator GetEnumerator()
IEnumerator
Recreates the shape.
protected void RecreateShape()