Class ShapeObject
Represents a shape object.
Implements
Inherited Members
Namespace: FastReport
Assembly: FastReport.Base.dll
Syntax
public class ShapeObject : ReportComponentBase, IFRSerializable
Remarks
Use the ShapeKind property to specify a shape. To set the width, style and color of the shape's border, use the Border.Width, Border.Style and Border.Color properties.
Constructors
ShapeObject()
Initializes a new instance of the ShapeObject class with default settings.
Declaration
public ShapeObject()
Properties
Curve
Gets or sets a shape curvature if ShapeKind is RoundRectangle.
Declaration
public float Curve { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Remarks
0 value means automatic curvature.
DashPattern
Gets or sets collection of values for custom dash pattern.
Declaration
public FloatCollection DashPattern { get; set; }
Property Value
Type | Description |
---|---|
FloatCollection |
Remarks
Each element should be a non-zero positive number. If the number is negative or zero, that number is replaced by one.
Shape
Gets or sets a shape kind.
Declaration
public ShapeKind Shape { get; set; }
Property Value
Type | Description |
---|---|
ShapeKind |
Methods
Assign(Base)
Declaration
public override void Assign(Base source)
Parameters
Type | Name | Description |
---|---|---|
Base | source |
Overrides
Draw(FRPaintEventArgs)
Declaration
public override void Draw(FRPaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
FRPaintEventArgs | e |
Overrides
Serialize(FRWriter)
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer |