ClassShapeBase
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
ShapeBase()
Initializes a new instance of the ShapeBase with zero angle of rotation.
Declaration
protected ShapeBase()
ShapeBase(double)
Initializes a new instance of the ShapeBase with the specified angle of rotation in degrees.
Declaration
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
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
[Browsable(false)]
public RectangleF Bounds { get; set; }
Property Value
RectangleF
A RectangleF structure representing the bounds of this shape.
StartAngle
TODO: Add documentation.
Declaration
public double StartAngle { get; set; }
Property Value
double
Methods
AddBeziers(PointF[])
Adds a Bezier curve to the shape.
Declaration
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
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
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
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
public abstract object Clone()
Returns
object
CreateShape()
When overridden this method should create the shape.
Declaration
protected abstract void CreateShape()
GetEnumerator()
Internal use only
Declaration
public IEnumerator GetEnumerator()
Returns
IEnumerator