Show / Hide Table of Contents

Class PolygonObject

Represents a polygon object.

Inheritance
System.Object
Base
ComponentBase
ReportComponentBase
PolyLineObject
PolygonObject
Implements
IFRSerializable
Inherited Members
PolyLineObject.polygonSelectionMode
PolyLineObject.Points
PolyLineObject.CenterX
PolyLineObject.CenterY
PolyLineObject.PointsArray
PolyLineObject.PointTypesArray
PolyLineObject.Assign(Base)
PolyLineObject.Deserialize(FRReader)
PolyLineObject.Draw(FRPaintEventArgs)
PolyLineObject.GetPath(Pen, Single, Single, Single, Single, Single, Single)
PolyLineObject.RecalculateBounds()
PolyLineObject.SetPolyLine(PointF[])
PolyLineObject.addPoint(Single, Single, Byte)
PolyLineObject.deletePoint(Int32)
PolyLineObject.insertPoint(Int32, Single, Single, Byte)
ReportComponentBase.BeforePrint
ReportComponentBase.AfterPrint
ReportComponentBase.AfterData
ReportComponentBase.Click
ReportComponentBase.Exportable
ReportComponentBase.Border
ReportComponentBase.Fill
ReportComponentBase.FillColor
ReportComponentBase.Bookmark
ReportComponentBase.Hyperlink
ReportComponentBase.CanGrow
ReportComponentBase.CanShrink
ReportComponentBase.GrowToBottom
ReportComponentBase.ShiftMode
ReportComponentBase.Style
ReportComponentBase.EvenStyle
ReportComponentBase.HoverStyle
ReportComponentBase.EvenStylePriority
ReportComponentBase.PrintOn
ReportComponentBase.BeforePrintEvent
ReportComponentBase.AfterPrintEvent
ReportComponentBase.AfterDataEvent
ReportComponentBase.ClickEvent
ReportComponentBase.FlagSimpleBorder
ReportComponentBase.FlagUseBorder
ReportComponentBase.FlagUseFill
ReportComponentBase.FlagPreviewVisible
ReportComponentBase.FlagSerializeStyle
ReportComponentBase.FlagProvidesHyperlinkValue
ReportComponentBase.Cursor
ReportComponentBase.MouseMoveEvent
ReportComponentBase.MouseUpEvent
ReportComponentBase.MouseDownEvent
ReportComponentBase.MouseEnterEvent
ReportComponentBase.MouseLeaveEvent
ReportComponentBase.ApplyStyle(Style)
ReportComponentBase.SaveStyle()
ReportComponentBase.RestoreStyle()
ReportComponentBase.DrawBackground(FRPaintEventArgs)
ReportComponentBase.IsVisible(FRPaintEventArgs)
ReportComponentBase.OnClick(EventArgs)
ReportComponentBase.OnAfterLoad()
ReportComponentBase.HasClickListeners()
ReportComponentBase.InitializeComponent()
ReportComponentBase.FinalizeComponent()
ReportComponentBase.SaveState()
ReportComponentBase.RestoreState()
ReportComponentBase.CalcHeight()
ReportComponentBase.GetData()
ReportComponentBase.GetExpressions()
ReportComponentBase.OnBeforePrint(EventArgs)
ReportComponentBase.OnAfterPrint(EventArgs)
ReportComponentBase.OnAfterData(EventArgs)
ComponentBase.AbsBottom
ComponentBase.AbsBounds
ComponentBase.AbsLeft
ComponentBase.AbsRight
ComponentBase.AbsTop
ComponentBase.Anchor
ComponentBase.Bottom
ComponentBase.Bounds
ComponentBase.ClientSize
ComponentBase.Dock
ComponentBase.GroupIndex
ComponentBase.Height
ComponentBase.Left
ComponentBase.Right
ComponentBase.Tag
ComponentBase.Top
ComponentBase.Visible
ComponentBase.Printable
ComponentBase.Width
Base.Name
Base.Restrictions
Base.Flags
Base.Parent
Base.BaseName
Base.ClassName
Base.Report
Base.Page
Base.ChildObjects
Base.AllObjects
Base.ZOrder
Base.IsAncestor
Base.IsDesigning
Base.IsPrinting
Base.IsRunning
Base.OriginalComponent
Base.SetProp(Base, Base)
Base.FloatDiff(Single, Single)
Base.DeserializeSubItems(FRReader)
Base.ExtractDefaultMacros(String)
Base.Dispose(Boolean)
Base.SetFlags(Flags, Boolean)
Base.SetReport(Report)
Base.SetName(String)
Base.SetParent(Base)
Base.SetParentCore(Base)
Base.FindObject(String)
Base.CreateUniqueName()
Base.Clear()
Base.BaseAssign(Base)
Base.AssignAll(Base)
Base.HasParent(Base)
Base.HasFlag(Flags)
Base.HasRestriction(Restrictions)
Base.InvokeEvent(String, Object)
Base.GetCustomScript()
Base.ExtractMacros()
Base.IsHaveToConvert(Object)
Base.GetConvertedObjects()
Base.ForEachAllConvectedObjects(Object)
Namespace: FastReport
Assembly: FastReport.OpenSource.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
PolyLineObject.drawPoly(FRPaintEventArgs)

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
PolyLineObject.Serialize(FRWriter)
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(Base) methods;
  • saving the object to the designer's clipboard;
  • saving the object to the preview (when run a report).

Implements

IFRSerializable
Back to top Generated by DocFX