Class PdfLineEndingStyle
Specifies the line ending style to be used in the Line annotation.
Inheritance
System.Object
PdfLineEndingStyle
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Portable.dll
Syntax
public sealed class PdfLineEndingStyle : Enum
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)
Fields
Butt
Indicates Butt
Declaration
public const PdfLineEndingStyle Butt
Field Value
Type |
---|
PdfLineEndingStyle |
Circle
Indicates Circle
Declaration
public const PdfLineEndingStyle Circle
Field Value
Type |
---|
PdfLineEndingStyle |
ClosedArrow
Indicates ClosedArrow
Declaration
public const PdfLineEndingStyle ClosedArrow
Field Value
Type |
---|
PdfLineEndingStyle |
Diamond
Indicates Diamond
Declaration
public const PdfLineEndingStyle Diamond
Field Value
Type |
---|
PdfLineEndingStyle |
None
Indicates None
Declaration
public const PdfLineEndingStyle None
Field Value
Type |
---|
PdfLineEndingStyle |
OpenArrow
Indicates OpenArrow
Declaration
public const PdfLineEndingStyle OpenArrow
Field Value
Type |
---|
PdfLineEndingStyle |
RClosedArrow
Indicates RClosedArrow
Declaration
public const PdfLineEndingStyle RClosedArrow
Field Value
Type |
---|
PdfLineEndingStyle |
ROpenArrow
Indicates ROpenArrow
Declaration
public const PdfLineEndingStyle ROpenArrow
Field Value
Type |
---|
PdfLineEndingStyle |
Slash
Indicates Slash
Declaration
public const PdfLineEndingStyle Slash
Field Value
Type |
---|
PdfLineEndingStyle |
Square
Indicates Square
Declaration
public const PdfLineEndingStyle Square
Field Value
Type |
---|
PdfLineEndingStyle |