Class Polygon
Implementation of polygon shapes.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class Polygon : FilledPath, IUnitIndependent, IDispatchNodeEvents, ISerializable, INode, ICloneable, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, IServiceProvider, IGraphNode, IDeserializationCallback, IDisposable
Constructors
Polygon(Polygon)
Initializes a new instance of the Polygon class.
Declaration
public Polygon(Polygon src)
Parameters
Type | Name | Description |
---|---|---|
Polygon | src | Object to copy. |
Polygon(PointF[])
Initializes a new instance of the Polygon class.
Declaration
public Polygon(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | Points to add to polygon. |
Polygon(SerializationInfo, StreamingContext)
Initializes a new instance of the Polygon class.
Declaration
protected Polygon(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | Serialization state information. |
System.Runtime.Serialization.StreamingContext | context | Streaming context information. |
Methods
CanEditSegment()
Determines whether this node can edit segments.
Declaration
public override bool CanEditSegment()
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
CanEditVertexPoint()
Determines whether this node can edit vertex points.
Declaration
public override bool CanEditVertexPoint()
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | Copy of the object this method is invoked against. |
Overrides
CreateLogicalGraphicsPath(PointF[])
Creates node's path with given array of points.
Declaration
protected override GraphicsPath CreateLogicalGraphicsPath(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | Points to create path from. |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.GraphicsPath | Created GraphicsPath, otherwise null. |
Overrides
Dispose()
Declaration
public override void Dispose()
Overrides
GetObjectData(SerializationInfo, StreamingContext)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Declaration
protected override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
System.Runtime.Serialization.StreamingContext | context | The destination (see System.Runtime.Serialization.StreamingContext) for this serialization. |
Overrides
Exceptions
Type | Condition |
---|---|
System.Security.SecurityException | The caller does not have the required permission. |
UpdateGraphicsPath(PointF[])
Updates the graphics path.
Declaration
protected override void UpdateGraphicsPath(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | The new path points array. |