Class PdfLineBorderStyle
Specifies the line border Style of the line annotation.
Inheritance
System.Object
PdfLineBorderStyle
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Portable.dll
Syntax
public sealed class PdfLineBorderStyle : Enum
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
Beveled
Indicates Beveled
Declaration
public const PdfLineBorderStyle Beveled
Field Value
Type |
---|
PdfLineBorderStyle |
Dashed
Indicates Dashed
Declaration
public const PdfLineBorderStyle Dashed
Field Value
Type |
---|
PdfLineBorderStyle |
Inset
Indicates Inset
Declaration
public const PdfLineBorderStyle Inset
Field Value
Type |
---|
PdfLineBorderStyle |
Solid
Indicates Solid
Declaration
public const PdfLineBorderStyle Solid
Field Value
Type |
---|
PdfLineBorderStyle |
Underline
Indicates Underline
Declaration
public const PdfLineBorderStyle Underline
Field Value
Type |
---|
PdfLineBorderStyle |