Enum PdfLineEndingStyle
- Namespace
- Syncfusion.Pdf.Interactive
- Assembly
- Syncfusion.Pdf.Portable.dll
Specifies the line ending style to be used in the Line annotation.
public enum PdfLineEndingStyle
Fields
Butt = 5
Indicates Butt
Circle = 7
Indicates Circle
ClosedArrow = 2
Indicates ClosedArrow
Diamond = 6
Indicates Diamond
None = 0
Indicates None
OpenArrow = 1
Indicates OpenArrow
RClosedArrow = 4
Indicates RClosedArrow
ROpenArrow = 3
Indicates ROpenArrow
Slash = 9
Indicates Slash
Square = 8
Indicates Square
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page.
PdfPage page = document.Pages.Add();
//To specify the line end points
int[] points = new int[] { 80, 420, 150, 420 };
//Create a new line annotation.
PdfLineAnnotation linkAnnotation = new PdfLineAnnotation(points, "Line Annotation");
linkannotation.EndLineStyle = PdfLineEndingStyle.Diamond;
//Add this annotation to a new page.
page.Annotations.Add(linkAnnotation);
//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()
'To specify the line end points
Dim points() As Integer = { 80, 420, 150, 420 }
'Create a new line annotation.
Dim linkAnnotation As New PdfLineAnnotation(points, "Line Annotation")
linkannotation.EndLineStyle = PdfLineEndingStyle.Diamond
'Add this annotation to a new page.
page.Annotations.Add(linkAnnotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)