Class PolygonShape
Represents a polygon shape.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.DLS
Assembly: Syncfusion.DLS.Base.dll
Syntax
public class PolygonShape : Shape, IEntityBase, IXDLSSerializable, IShape, ILeafWidget, IWidget
Remarks
Supported by Essential PDF only.
Constructors
PolygonShape(Canvas)
Declaration
public PolygonShape(Canvas canvas)
Parameters
Type | Name | Description |
---|---|---|
Canvas | canvas |
Properties
Points
Gets / sets X points of polygon.
Declaration
public PointF[] Points { get; }
Property Value
Type |
---|
System.Drawing.PointF[] |
Methods
Add(PointF)
Adds point to the polygon.
Declaration
public void Add(PointF point)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF | point | New point for the polygon. |
AddRange(PointF[])
Adds points to the polygon.
Declaration
public void AddRange(PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | points | Array of points. |
ReadXmlContent(IXDLSContentReader)
Reads element from XML.
Declaration
protected override bool ReadXmlContent(IXDLSContentReader reader)
Parameters
Type | Name | Description |
---|---|---|
IXDLSContentReader | reader | Reader object. |
Returns
Type | Description |
---|---|
System.Boolean | True. |
Overrides
WriteXmlAttributes(IXDLSAttributeWriter)
Declaration
protected override void WriteXmlAttributes(IXDLSAttributeWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IXDLSAttributeWriter | writer |
Overrides
WriteXmlContent(IXDLSContentWriter)
Writes points to XML.
Declaration
protected override void WriteXmlContent(IXDLSContentWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IXDLSContentWriter | writer | Writer object. |
Overrides
Explicit Interface Implementations
IWidget.Draw(CustomGraphics, LayoutedWidget)
Declaration
void IWidget.Draw(CustomGraphics cg, LayoutedWidget ltWidget)
Parameters
Type | Name | Description |
---|---|---|
CustomGraphics | cg | |
LayoutedWidget | ltWidget |