Enum PdfBorderStyle
Specifies the available styles for a field border.
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public enum PdfBorderStyle
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
Name | Description |
---|---|
Beveled | A simulated embossed rectangle that appears to be raised above the surface of the page. |
Dashed | A dashed rectangle surrounding the annotation. |
Dot | A dotted rectangle surrounding the annotation. |
Inset | A simulated engraved rectangle that appears to be recessed below the surface of the page. |
Solid | A solid rectangle surrounding the annotation. |
Underline | A single line along the bottom of the annotation rectangle. |