Table of Contents

Enum PdfLineBorderStyle

Namespace
Syncfusion.Pdf.Interactive
Assembly
Syncfusion.Pdf.Portable.dll

Specifies the line border Style of the line annotation.

public enum PdfLineBorderStyle

Fields

Beveled = 2

Indicates Beveled

Dashed = 1

Indicates Dashed

Inset = 3

Indicates Inset

Solid = 0

Indicates Solid

Underline = 4

Indicates Underline

Examples

//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page.
PdfPage page = document.Pages.Add();
//Create a new rectangle
RectangleF inkAnnotationBounds = new RectangleF(10, 40, 30, 30);
//To specify the line points
List(float) points = new List(float) { 50, 50, 30, 30, 40, 40 };
//Create a new line annotation.
PdfInkAnnotation inkAnnotation = new PdfInkAnnotation(inkAnnotationBounds, points);
inkAnnotation.Color = new PdfColor(Color.Red);
//Set the line border style.
inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed;
//Add this annotation to a new 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()
'Create a new rectangle
Dim inkAnnotationBounds As New RectangleF(10, 40, 30, 30)
'To specify the line points
Dim points As New List(Of Single) (New Single() {50, 50, 30, 30, 40, 40})
'Create a new line annotation.
Dim inkAnnotation As New PdfInkAnnotation(inkAnnotationBounds, points)
inkAnnotation.Color = New PdfColor(Color.Red)
'Set the line border style.
inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed
'Add this annotation to a new page.
page.Annotations.Add(inkAnnotation)
'Save the  document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)