officefileapi-devexpress-dot-pdf-dot-pdfwidgetfacade-8df26337.md
Gets or sets the form field widget’s border style.
Namespace : DevExpress.Pdf
Assembly : DevExpress.Pdf.v25.2.Core.dll
NuGet Package : DevExpress.Pdf.Core
public PdfBorderStyle BorderStyle { get; set; }
Public Property BorderStyle As PdfBorderStyle
| Type | Description |
|---|---|
| PdfBorderStyle |
An enumeration value that indicates the border style.
|
Available values:
| Name | Description | Example |
|---|---|---|
| Solid |
A solid border.
|
| | Dot |
A border that consists of dots.
|
| | Dash |
A line that consists of dashes.
|
| | DashDot |
A border that consists of a repeating dash-dot pattern.
|
| | DashDotDot |
A border that consists of a repeating short dash-dot-dot pattern.
|
| | Beveled |
A 3D outset border. Available for widget annotations only.
|
| | Inset |
A 3D inset border. Available for widget annotations only.
|
| | Underline |
Only bottom border is displayed.
|
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BorderStyle property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
pdf-document-api-change-pdf-form-field-parameters/CS/pdf-form-fields/Program.cs#L92
{
pdfWidget.BorderStyle = PdfBorderStyle.Underline;
}
pdf-document-api-change-pdf-form-field-parameters/VB/pdf-form-fields/Program.vb#L69
If field.Type = PdfFormFieldType.Text Then
pdfWidget.BorderStyle = PdfBorderStyle.Underline
End If
See Also