PolylineAnnotation 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 PolylineAnnotation(
	Boundary boundary,
	AnnotationFlags flags,
	AnnotationBorderStyle borderStyle
)

Parameters

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

C#
PolylineAnnotation polyline = new PolylineAnnotation(new Boundary(110, 110, 300, 300), AnnotationFlags.ReadOnly, new AnnotationBorderStyle(2, AnnotationBorderType.Beveled));
polyline.Vertices = new double[] { 112, 112, 122, 144, 166, 188, 112, 199, 300, 300 };
polyline.LineEndingStyles[0] = AnnotationLineEndingStyle.Slash;
polyline.LineEndingStyles[1] = AnnotationLineEndingStyle.Butt;

page.Annotations.Add(polyline);
See Also

Reference