Search Results for

    Show / Hide Table of Contents

    Class PolyLineObject

    Represents a poly line object.

    Inheritance
    System.Object
    Base
    ComponentBase
    ReportComponentBase
    PolyLineObject
    PolygonObject
    Implements
    IFRSerializable
    Inherited Members
    ReportComponentBase.GetDataAsync(CancellationToken)
    ReportComponentBase.BeforePrint
    ReportComponentBase.AfterPrint
    ReportComponentBase.AfterData
    ReportComponentBase.Click
    ReportComponentBase.Exportable
    ReportComponentBase.ExportableExpression
    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.PageBreak
    ReportComponentBase.PrintOn
    ReportComponentBase.BeforePrintEvent
    ReportComponentBase.AfterPrintEvent
    ReportComponentBase.AfterDataEvent
    ReportComponentBase.ClickEvent
    ReportComponentBase.FlagSimpleBorder
    ReportComponentBase.FlagUseBorder
    ReportComponentBase.FlagUseFill
    ReportComponentBase.FlagPreviewVisible
    ReportComponentBase.FlagSerializeStyle
    ReportComponentBase.FlagProvidesHyperlinkValue
    ReportComponentBase.IsCompilationNeeded
    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.Validate()
    ReportComponentBase.OnClick(EventArgs)
    ReportComponentBase.OnAfterLoad()
    ReportComponentBase.HasClickListeners()
    ReportComponentBase.ResetData()
    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.VisibleExpression
    ComponentBase.Printable
    ComponentBase.PrintableExpression
    ComponentBase.Width
    ComponentBase.CalcVisibleExpression(String)
    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.Disposed
    Base.SetProp(Base, Base)
    Base.FloatDiff(Single, Single)
    Base.DeserializeSubItems(FRReader)
    Base.ExtractDefaultMacros(String)
    Base.Dispose(Boolean)
    Base.Dispose()
    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.Base.dll
    Syntax
    public class PolyLineObject : ReportComponentBase, IDisposable, IFRSerializable
    Remarks

    Use the Border.Width, Border.Style and Border.Color properties to set the line width, style and color.

    Constructors

    PolyLineObject()

    Initializes a new instance of the LineObject class with default settings.

    Declaration
    public PolyLineObject()

    Fields

    polygonSelectionMode

    do not set this value, internal use only

    Declaration
    protected PolyLineObject.PolygonSelectionMode polygonSelectionMode
    Field Value
    Type Description
    PolyLineObject.PolygonSelectionMode

    Properties

    CenterX

    Returns origin of coordinates relative to the top left corner

    Declaration
    public float CenterX { get; set; }
    Property Value
    Type Description
    System.Single

    CenterY

    Returns origin of coordinates relative to the top left corner

    Declaration
    public float CenterY { get; set; }
    Property Value
    Type Description
    System.Single

    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.

    Points

    Return points collection. You can modify the collection for change this object.

    Declaration
    public PolyLineObject.PolyPointCollection Points { get; }
    Property Value
    Type Description
    PolyLineObject.PolyPointCollection

    PointsArray

    Return points array of line deprecated

    Declaration
    [Obsolete]
    public PointF[] PointsArray { get; }
    Property Value
    Type Description
    PointF[]

    PointTypesArray

    Return point types array. 0 - Start of line, 1 - Keep on line deprecated

    Declaration
    [Obsolete]
    public byte[] PointTypesArray { get; }
    Property Value
    Type Description
    System.Byte[]

    Methods

    addPoint(Single, Single, Byte)

    Add point to end of polyline, need to recalculate bounds after add First point must have zero coordinate and zero type. Recalculate bounds. Method is slow do not use this.

    Declaration
    protected PolyLineObject.PolyPoint addPoint(float localX, float localY, byte pointType)
    Parameters
    Type Name Description
    System.Single localX

    local x - relative to left-top point

    System.Single localY

    local y - relative to left-top point

    System.Byte pointType

    depreceted

    Returns
    Type Description
    PolyLineObject.PolyPoint

    Assign(Base)

    Copies the contents of another, similar object.

    Declaration
    public override void Assign(Base source)
    Parameters
    Type Name Description
    Base source

    Source object to copy the contents from.

    Overrides
    ReportComponentBase.Assign(Base)
    Remarks

    Call Assign to copy the properties from another object of the same type. The standard form of a call to Assign is

    destination.Assign(source);

    which tells the destination object to copy the contents of the source object to itself. In this method, all child objects are ignored. If you want to copy child objects, use the AssignAll method.

    See Also
    AssignAll(Base)

    deletePoint(Int32)

    Delete point from polyline by index. Recalculate bounds. Method is slow do not use this.

    Declaration
    protected void deletePoint(int index)
    Parameters
    Type Name Description
    System.Int32 index

    Index of point in polyline

    Deserialize(FRReader)

    Declaration
    public override void Deserialize(FRReader reader)
    Parameters
    Type Name Description
    FRReader reader
    Overrides
    ReportComponentBase.Deserialize(FRReader)

    Draw(FRPaintEventArgs)

    Declaration
    public override void Draw(FRPaintEventArgs e)
    Parameters
    Type Name Description
    FRPaintEventArgs e
    Overrides
    ReportComponentBase.Draw(FRPaintEventArgs)

    drawPoly(FRPaintEventArgs)

    Draw polyline path to graphics

    Declaration
    protected virtual void drawPoly(FRPaintEventArgs e)
    Parameters
    Type Name Description
    FRPaintEventArgs e

    Event arguments

    GetPath(Pen, Single, Single, Single, Single, Single, Single)

    Calculate GraphicsPath for draw to page

    Declaration
    public GraphicsPath GetPath(Pen pen, float left, float top, float right, float bottom, float scaleX, float scaleY)
    Parameters
    Type Name Description
    Pen pen

    Pen for lines

    System.Single left

    Left boundary

    System.Single top

    Top boundary

    System.Single right

    Right boundary

    System.Single bottom

    Bottom boundary

    System.Single scaleX

    scale by width

    System.Single scaleY

    scale by height

    Returns
    Type Description
    GraphicsPath

    Always returns a non-empty path

    insertPoint(Int32, Single, Single, Byte)

    Insert point to desired place of polyline recalculateBounds(); Method is slow do not use this

    Declaration
    protected PolyLineObject.PolyPoint insertPoint(int index, float localX, float localY, byte pointType)
    Parameters
    Type Name Description
    System.Int32 index

    Index of place from zero to count

    System.Single localX

    local x - relative to left-top point

    System.Single localY

    local y - relative to left-top point

    System.Byte pointType

    deprecated

    Returns
    Type Description
    PolyLineObject.PolyPoint

    RecalculateBounds()

    Recalculate position and size of element

    Declaration
    public void RecalculateBounds()

    Serialize(FRWriter)

    Serializes the object.

    Declaration
    public override void Serialize(FRWriter writer)
    Parameters
    Type Name Description
    FRWriter writer

    Writer object.

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

    SetPolyLine(PointF[])

    Declaration
    public void SetPolyLine(PointF[] newPoints)
    Parameters
    Type Name Description
    PointF[] newPoints

    Implements

    IFRSerializable
    Back to top © 1998-2025 Copyright Fast Reports Inc.