Apitron.PDF.Kit library for .NET
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Initializes a new instance of the Object 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 TextMarkupAnnotation( Boundary boundary, TextMarkupType markupType = TextMarkupType.Highlight, AnnotationFlags flags = AnnotationFlags.Default, AnnotationBorderStyle borderStyle = null )
Parameters
- boundary
- Type: Apitron.PDF.Kit.FixedLayoutBoundary
The boundary. - markupType (Optional)
- Type: Apitron.PDF.Kit.Interactive.AnnotationsTextMarkupType
Type of the markup. - flags (Optional)
- Type: Apitron.PDF.Kit.Interactive.AnnotationsAnnotationFlags
The flags. - borderStyle (Optional)
- Type: Apitron.PDF.Kit.Interactive.AnnotationsAnnotationBorderStyle
The border style.
Examples
C#
TextMarkupAnnotation textAnnotation = new TextMarkupAnnotation(new Boundary(8, 8, 370, 22), TextMarkupType.Highlight); textAnnotation.Contents = "Hello World !!!"; textAnnotation.Color = new double[] { 1, 0, 1 }; textAnnotation.SetQuadPoints(new double[] {8, 22, 370, 22, 8, 8, 370, 8}); page.Annotations.Add(textAnnotation);
See Also