Enum PdfLineBorderStyle
Specifies the line border Style of the line annotation.
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public enum PdfLineBorderStyle
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)
Fields
Name | Description |
---|---|
Beveled | Indicates Beveled |
Dashed | Indicates Dashed |
Inset | Indicates Inset |
Solid | Indicates Solid |
Underline | Indicates Underline |