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 InkAnnotation( 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
InkAnnotation inkAnnotation = new InkAnnotation(new Boundary(10, 10, 200, 200), AnnotationFlags.ReadOnly, new AnnotationBorderStyle(2, AnnotationBorderType.Inset)); inkAnnotation.Color = new double[] { 1, 0, 0 }; IList <double[]> inkList = new List <double[]>(); inkList.Add(new double[] { 10, 10, 12, 18, 22, 36, 100, 10, 20, 40 }); inkList.Add(new double[] { 200, 200, 180, 190, 190, 160 }); inkAnnotation.InkList = inkList; page.Annotations.Add(inkAnnotation);
See Also