Back to Devexpress

PdfWidgetFacade.BorderStyle Property

officefileapi-devexpress-dot-pdf-dot-pdfwidgetfacade-8df26337.md

latest3.4 KB
Original Source

PdfWidgetFacade.BorderStyle Property

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

Declaration

csharp
public PdfBorderStyle BorderStyle { get; set; }
vb
Public Property BorderStyle As PdfBorderStyle

Property Value

TypeDescription
PdfBorderStyle

An enumeration value that indicates the border style.

|

Available values:

NameDescriptionExample
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

csharp
{
    pdfWidget.BorderStyle = PdfBorderStyle.Underline;
}

pdf-document-api-change-pdf-form-field-parameters/VB/pdf-form-fields/Program.vb#L69

vb
If field.Type = PdfFormFieldType.Text Then
    pdfWidget.BorderStyle = PdfBorderStyle.Underline
End If

See Also

PdfWidgetFacade Class

PdfWidgetFacade Members

DevExpress.Pdf Namespace