PolygonAnnotation Constructor

Apitron PDF Kit help
Apitron.PDF.Kit library for .NET
Initializes a new instance of the PolygonAnnotation class.

Namespace:  Apitron.PDF.Kit.Interactive.Annotations
Assembly:  Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax

public PolygonAnnotation(
	Boundary annotationBoundary,
	AnnotationFlags flags = AnnotationFlags.Default,
	AnnotationBorderStyle borderStyle = null
)

Parameters

annotationBoundary
Type: Apitron.PDF.Kit.FixedLayoutBoundary
The annotation boundary.
flags (Optional)
Type: Apitron.PDF.Kit.Interactive.AnnotationsAnnotationFlags
The flags.
borderStyle (Optional)
Type: Apitron.PDF.Kit.Interactive.AnnotationsAnnotationBorderStyle
The border style.
Examples

C#
PolygonAnnotation polygon = new PolygonAnnotation(new Boundary(10, 10, 200, 200), AnnotationFlags.ReadOnly, new AnnotationBorderStyle(2, AnnotationBorderType.Beveled));
polygon.Vertices = new double[] { 12, 12, 22, 44, 66, 88, 12, 99, 200, 200 };
polygon.LineEndingStyles[0] = AnnotationLineEndingStyle.Slash;
polygon.LineEndingStyles[1] = AnnotationLineEndingStyle.Butt;
page.Annotations.Add(polygon);
See Also

Reference