Polygon
Overview
Polygon is a class in Aspose.PDF FOSS for .NET.
Inherits from: Shape.
A polygon shape (closed path with arbitrary vertices).
This class provides 2 methods for working with Polygon objects in .NET programs.
Available methods include: CheckBounds, Polygon.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: GraphInfo, Points, Text.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Points | (double X, double Y)[] | Read/Write | Gets or sets the points. |
GraphInfo | Aspose.Pdf.GraphInfo | Read/Write | Gets or sets the graph info. |
Text | Aspose.Pdf.Text.TextFragment? | Read/Write | Optional text label rendered with the shape. |
Methods
| Signature | Description |
|---|---|
Polygon(points) | Calls Polygon on this Polygon instance. |
CheckBounds(containerWidth: double, containerHeight: double) | Whether this shape lies within a containerWidth×containerHeight box anchored at the origin. |