Class PdfInkAnnotation
Represents the ink annotation class.
Inheritance
System.Object
PdfInkAnnotation
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Syncfusion.Pdf.UWP.dll
Syntax
public class PdfInkAnnotation : PdfAnnotation, IPdfWrapper, INotifyPropertyChanged
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page
PdfPage page = document.Pages.Add();
//set the points
List(float) linePoints = new List(float) { 40, 300, 60, 100, 40, 50, 40, 300 };
//Create a new ink annotation
RectangleF rectangle = new RectangleF(0, 0, 300, 400);
//Create a inkAnnotation and set the properties
PdfInkAnnotation inkAnnotation = new PdfInkAnnotation(rectangle, linePoints);
inkAnnotation.Color = new PdfColor(Color.Red);
inkAnnotation.BorderWidth = 4;
inkAnnotation.BorderStyle = PdfLineBorderStyle.Beveled;
//Add annotation to the page
page.Annotations.Add(inkAnnotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
'Create a new PDF document.
Dim document As New PdfDocument()
'Create a new page
Dim page As PdfPage = document.Pages.Add()
'set the points
Dim linePoints As New List(Of Single) (New Single() {40, 300, 60, 100, 40, 50, 40, 300})
'Create a new ink annotation
Dim rectangle As New RectangleF(0, 0, 300, 400)
'Create a inkAnnotation and set the properties
Dim inkAnnotation As New PdfInkAnnotation(rectangle, linePoints)
inkAnnotation.Color = New PdfColor(Color.Red)
inkAnnotation.BorderWidth = 4
inkAnnotation.BorderStyle = PdfLineBorderStyle.Beveled
'Add annotation to the page
page.Annotations.Add(inkAnnotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
Constructors
PdfInkAnnotation(RectangleF, List<Single>)
Declaration
public PdfInkAnnotation(RectangleF rectangle, List<float> linePoints)
Parameters
Type |
Name |
Description |
System.Drawing.RectangleF |
rectangle |
|
System.Collections.Generic.List<System.Single> |
linePoints |
|
Properties
BorderStyle
Declaration
public PdfLineBorderStyle BorderStyle { get; set; }
Property Value
BorderWidth
Declaration
public int BorderWidth { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public PdfPopupAnnotationCollection Comments { get; }
Property Value
DashArray
Declaration
public int[] DashArray { get; set; }
Property Value
Type |
Description |
System.Int32[] |
|
InkList
Declaration
public List<float> InkList { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<System.Single> |
|
InkPointsCollection
Declaration
public List<List<float>> InkPointsCollection { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<System.Collections.Generic.List<System.Single>> |
|
ReviewHistory
Declaration
public PdfPopupAnnotationCollection ReviewHistory { get; }
Property Value
Methods
Initialize()
Initializes annotation object.
Declaration
protected override void Initialize()
Overrides
Save()
Declaration
protected override void Save()
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods
See Also