PdfPolygonElement Class

Defines a closed polygon drawn through a sequence of points in a PDF document. The polygon can be both stroked and filled. Coordinates are relative to the top-left corner of the page or template

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.9.2
C#
public class PdfPolygonElement
Inheritance
Object    PdfPolygonElement

Constructors

PdfPolygonElement(IEnumerablePdfPointF) Initializes a new instance of the PdfPolygonElement class with the specified vertices
PdfPolygonElement(PdfPointF) Initializes a new instance of the PdfPolygonElement class with the specified vertices

Properties

Accessibility Accessibility metadata used when the host PdfDocument is tagged. The default structure type for a polygon is Artifact, marking it as decorative graphic excluded from the structure tree
Border The stroke style for the polygon outline, including width, dash pattern and corner join style
BorderColor The border color of the polygon. When null the polygon is only filled
BorderOpacity The opacity of the polygon border in the range 0..1. The default value is 1 which produces a fully opaque border
FillColor The fill color of the polygon. When null the polygon is only stroked
FillOpacity The opacity of the polygon fill in the range 0..1. The default value is 1 which produces a fully opaque fill
Points The ordered list of polygon vertices, expressed in points and relative to the top-left corner of the page or template. The polygon is automatically closed by connecting the last vertex back to the first
RotationDegrees The rotation angle in degrees applied to the polygon. Positive values rotate counter-clockwise
RotationPivot The pivot point used when rotating this polygon. The pivot is interpreted on the axis-aligned bounding box of the vertices. The default value is TopLeft

Methods

Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

See Also