Search Results for

    Show / Hide Table of Contents

    Class ShapePolygon

    Represents a polygon shape.

    Inheritance
    System.Object
    Base
    ShapeBase
    ShapePolygon
    ShapePolyLine
    Implements
    IFRSerializable
    Inherited Members
    ShapeBase.Visible
    ShapeBase.UseCustomStyle
    ShapeBase.CustomStyle
    ShapeBase.CenterOffsetX
    ShapeBase.CenterOffsetY
    ShapeBase.ShapeOffsetX
    ShapeBase.ShapeOffsetY
    ShapeBase.ShapeScale
    ShapeBase.SpatialData
    ShapeBase.Value
    ShapeBase.Map
    ShapeBase.Layer
    ShapeBase.SaveState()
    ShapeBase.RestoreState()
    ShapeBase.GetProperties()
    ShapeBase.GetProperties(Attribute[])
    ShapeBase.GetClassName()
    ShapeBase.GetAttributes()
    ShapeBase.GetComponentName()
    ShapeBase.GetConverter()
    ShapeBase.GetDefaultEvent()
    ShapeBase.GetDefaultProperty()
    ShapeBase.GetEditor(Type)
    ShapeBase.GetEvents(Attribute[])
    ShapeBase.GetEvents()
    ShapeBase.GetPropertyOwner(PropertyDescriptor)
    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.OnAfterLoad()
    Base.GetExpressions()
    Base.GetCustomScript()
    Base.ExtractMacros()
    Base.IsHaveToConvert(Object)
    Base.GetConvertedObjects()
    Base.ForEachAllConvectedObjects(Object)
    FastReport.Base.IsSelected
    FastReport.Base.IsParentSelected
    FastReport.Base.Delete()
    FastReport.Base.OnBeforeInsert(System.Int32)
    FastReport.Base.OnAfterInsert(FastReport.InsertFrom)
    FastReport.Base.SelectionChanged()
    FastReport.Base.GetContextMenu()
    FastReport.Base.GetImageIndex()
    Namespace: FastReport.Map
    Assembly: FastReport.dll
    Syntax
    public class ShapePolygon : ShapeBase, IDisposable, IFRSerializable, ICustomTypeDescriptor

    Constructors

    ShapePolygon()

    Initializes a new instance of the ShapePolygon class.

    Declaration
    public ShapePolygon()

    Fields

    largestBoundsRect

    Holds the largest bounding rectangle of this shape.

    Declaration
    protected RectangleF largestBoundsRect
    Field Value
    Type Description
    System.Drawing.RectangleF

    Properties

    Box

    Gets or sets a bounding box of this shape.

    Declaration
    [Browsable(false)]
    public BoundingBox Box { get; set; }
    Property Value
    Type Description
    BoundingBox

    Parts

    Gets or sets a list of polygons in this shape.

    Declaration
    [Browsable(false)]
    public List<PointD[]> Parts { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<PointD[]>

    ShapeData

    Gets or sets the shape data in binary format.

    Declaration
    [Browsable(false)]
    public byte[] ShapeData { get; set; }
    Property Value
    Type Description
    System.Byte[]

    Methods

    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
    ShapeBase.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)

    Deserialize(FRReader)

    Deserializes the object.

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

    Reader object.

    Overrides
    Base.Deserialize(FRReader)
    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 restore the state. It may happen when:

    • loading the report from a file or stream;
    • loading the report from the designer's undo buffer;
    • assigning another object to this object using the Assign(Base) or AssignAll methods;
    • loading the object from the designer's clipboard;
    • loading the object from the preview pages.

    Draw(FRPaintEventArgs)

    Draws the shape.

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

    Object that provides a data for paint event.

    Overrides
    ShapeBase.Draw(FRPaintEventArgs)

    DrawLabel(FRPaintEventArgs)

    Draws the label.

    Declaration
    public override void DrawLabel(FRPaintEventArgs e)
    Parameters
    Type Name Description
    FRPaintEventArgs e

    Object that provides a data for paint event.

    Overrides
    ShapeBase.DrawLabel(FRPaintEventArgs)

    FinalizeComponent()

    Finalizes a component before running a report.

    Declaration
    public override void FinalizeComponent()
    Overrides
    ShapeBase.FinalizeComponent()

    HitTest(PointF)

    Checks if the shape is under cursor.

    Declaration
    public override bool HitTest(PointF point)
    Parameters
    Type Name Description
    System.Drawing.PointF point

    The cursor coordinates.

    Returns
    Type Description
    System.Boolean

    true if the cursor is over the shape.

    Overrides
    ShapeBase.HitTest(PointF)

    InitializeComponent()

    Initializes a component before running a report.

    Declaration
    public override void InitializeComponent()
    Overrides
    ShapeBase.InitializeComponent()

    Serialize(FRWriter)

    Serializes the object.

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

    Writer object.

    Overrides
    ShapeBase.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).

    Simplify(Double)

    Reduces the number of points in the shape.

    Declaration
    public override void Simplify(double accuracy)
    Parameters
    Type Name Description
    System.Double accuracy

    The accuracy value.

    Overrides
    ShapeBase.Simplify(Double)

    Implements

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