Class PolygonObject
Represents a polygon object.
Implements
Inherited Members
Namespace: FastReport
Assembly: FastReport.Base.dll
Syntax
public class PolygonObject : PolyLineObject, IFRSerializable
Remarks
Use the Border.Width, Border.Style and Border.Color properties to set the line width, style and color.
Constructors
PolygonObject()
Initializes a new instance of the LineObject class with default settings.
Declaration
public PolygonObject()
Methods
drawPoly(FRPaintEventArgs)
Draw polyline path to graphics
Declaration
protected override void drawPoly(FRPaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
FRPaintEventArgs | e | Event arguments |
Overrides
getPolygonPath(Pen, Single, Single)
Calculate GraphicsPath for draw to page
Declaration
protected GraphicsPath getPolygonPath(Pen pen, float scaleX, float scaleY)
Parameters
Type | Name | Description |
---|---|---|
Pen | pen | Pen for lines |
System.Single | scaleX | scale by width |
System.Single | scaleY | scale by height |
Returns
Type | Description |
---|---|
GraphicsPath | Always returns a non-empty path |
Serialize(FRWriter)
Serializes the object.
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer | Writer object. |
Overrides
Remarks
Do not call this method directly. You should override it if you are developing a new component for FastReport.
This method is called when the object needs to save the state. It may happen when:
- saving the report to the file or stream;
- saving the report to the designer's undo buffer;
- assigning the object to another object using the Assign(Base) or AssignAll methods;
- saving the object to the designer's clipboard;
- saving the object to the preview (when run a report).