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)
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer |