Class PdfBorderStyle
Specifies the available styles for a field border.
Inheritance
System.Object
PdfBorderStyle
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Portable.dll
Syntax
public sealed class PdfBorderStyle : Enum
Remarks
Default value is Solid.
Examples
//Create a new PDf document
PdfDocument document = new PdfDocument();
// Creates a new page and adds it as the last page of the document
PdfPage page = document.Pages.Add();
//Create submit button
PdfButtonField submitButton = new PdfButtonField(page, "submitButton");
submitButton.Bounds = new RectangleF(100, 500, 90, 20);
submitButton.Font = font;
submitButton.Text = "Submit";
// Set the border style for the button field
submitButton.BorderStyle = PdfBorderStyle.Dashed;
document.Form.Fields.Add(submitButton);
document.Save("Form.pdf");
document.Close(true);
'Create a new PDf document
Dim document As PdfDocument = New PdfDocument()
' Creates a new page and adds it as the last page of the document
Dim page As PdfPage = document.Pages.Add()
'Create submit button
Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton")
submitButton.Bounds = New RectangleF(100, 500, 90, 20)
submitButton.Font = font
submitButton.Text = "Submit"
' Set the border style for the button field
submitButton.BorderStyle = PdfBorderStyle.Dashed
document.Form.Fields.Add(submitButton)
document.Save("Form.pdf")
document.Close(True)
Fields
Beveled
A simulated embossed rectangle that appears to be raised above the surface of the page.
Declaration
public const PdfBorderStyle Beveled
Field Value
Type |
---|
PdfBorderStyle |
Dashed
A dashed rectangle surrounding the annotation.
Declaration
public const PdfBorderStyle Dashed
Field Value
Type |
---|
PdfBorderStyle |
Dot
A dotted rectangle surrounding the annotation.
Declaration
public const PdfBorderStyle Dot
Field Value
Type |
---|
PdfBorderStyle |
Inset
A simulated engraved rectangle that appears to be recessed below the surface of the page.
Declaration
public const PdfBorderStyle Inset
Field Value
Type |
---|
PdfBorderStyle |
Solid
A solid rectangle surrounding the annotation.
Declaration
public const PdfBorderStyle Solid
Field Value
Type |
---|
PdfBorderStyle |
Underline
A single line along the bottom of the annotation rectangle.
Declaration
public const PdfBorderStyle Underline
Field Value
Type |
---|
PdfBorderStyle |