Back to Devexpress

PdfGraphicsAcroFormFieldAppearance.BorderAppearance Property

officefileapi-devexpress-dot-pdf-dot-pdfgraphicsacroformfieldappearance-487ca6bf.md

latest4.4 KB
Original Source

PdfGraphicsAcroFormFieldAppearance.BorderAppearance Property

Specifies the border appearance settings for an interactive form field.

Namespace : DevExpress.Pdf

Assembly : DevExpress.Pdf.v25.2.Drawing.dll

NuGet Package : DevExpress.Pdf.Drawing

Declaration

csharp
public PdfGraphicsAcroFormBorderAppearance BorderAppearance { get; set; }
vb
Public Property BorderAppearance As PdfGraphicsAcroFormBorderAppearance

Property Value

TypeDescription
PdfGraphicsAcroFormBorderAppearance

An object that contains border appearance parameters.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the BorderAppearance 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-create-check-box-field/CS/AddCheckBoxField/Program.cs#L31

csharp
checkBox.Appearance.BackgroundColor = Color.Azure;
checkBox.Appearance.BorderAppearance = new PdfGraphicsAcroFormBorderAppearance() { Color = Color.Red };
checkBox.IsChecked = true;

pdf-document-api-create-radio-button-group-field/CS/AddRadioButtonField/Program.cs#L40

csharp
radioGroup.Appearance.BackgroundColor = Color.Aqua;
radioGroup.Appearance.BorderAppearance = new PdfGraphicsAcroFormBorderAppearance() { Color = Color.Red, Width = 3 };

pdf-document-api-create-interactive-form/CS/AddFormFieldsToNewDocument/Program.cs#L49

csharp
radioGroup.SelectedIndex = 0;
radioGroup.Appearance.BorderAppearance = new PdfGraphicsAcroFormBorderAppearance() { Color = Color.Red, Width = 3 };

pdf-document-api-create-check-box-field/VB/AddCheckBoxField/Program.vb#L29

vb
checkBox.Appearance.BackgroundColor = Color.Azure
checkBox.Appearance.BorderAppearance = New PdfGraphicsAcroFormBorderAppearance() With {.Color = Color.Red}
checkBox.IsChecked = True

pdf-document-api-create-radio-button-group-field/VB/AddRadioButtonField/Program.vb#L35

vb
radioGroup.Appearance.BackgroundColor = Color.Aqua
radioGroup.Appearance.BorderAppearance = New PdfGraphicsAcroFormBorderAppearance() With {.Color = Color.Red, .Width = 3}
' Add the field to graphics.

pdf-document-api-create-interactive-form/VB/AddFormFieldsToNewDocument/Program.vb#L41

vb
radioGroup.SelectedIndex = 0
radioGroup.Appearance.BorderAppearance = New PdfGraphicsAcroFormBorderAppearance() With {.Color = Color.Red, .Width = 3}
' Add the radio group field to graphics.

See Also

PdfGraphicsAcroFormFieldAppearance Class

PdfGraphicsAcroFormFieldAppearance Members

DevExpress.Pdf Namespace