FreeTextAnnotation Constructor

Apitron PDF Kit help
Apitron.PDF.Kit library for .NET
Initializes a new instance of the FreeTextAnnotation 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 FreeTextAnnotation(
	Boundary boundary,
	AnnotationFlags flags = AnnotationFlags.Default,
	AnnotationBorderStyle borderStyle = null
)

Parameters

boundary
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#
FreeTextAnnotation textAnnotation = new FreeTextAnnotation(new Boundary(10, 10, 200, 200), AnnotationFlags.ReadOnly, new AnnotationBorderStyle(2, AnnotationBorderType.Dashed, new BoxStyleDashPattern(new int[] { 10, 10 }, 5)));
textAnnotation.Contents = "Hello World !!!\n WOW!";

textAnnotation.BorderEffect = new AnnotationBorderEffect(AnnotationBorderEffectStyle.Cloudy, 2);
textAnnotation.Callout = new double[] {400, 400, 400, 300, 200, 200};
textAnnotation.LineEndingStyle = AnnotationLineEndingStyle.ClosedArrow;
textAnnotation.Intent = IntentStyle.FreeTextCallout;
page.Annotations.Add(textAnnotation);
See Also

Reference