Enum PdfBorderStyle
- Namespace
- Syncfusion.Pdf.Interactive
- Assembly
- Syncfusion.Pdf.Portable.dll
Specifies the available styles for a field border.
public enum PdfBorderStyle
Fields
Beveled = 2
A simulated embossed rectangle that appears to be raised above the surface of the page.
Dashed = 1
A dashed rectangle surrounding the annotation.
Dot = 5
A dotted rectangle surrounding the annotation.
Inset = 3
A simulated engraved rectangle that appears to be recessed below the surface of the page.
Solid = 0
A solid rectangle surrounding the annotation.
Underline = 4
A single line along the bottom of the annotation rectangle.
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)
Remarks
Default value is Solid.