Back to Devexpress

PdfAcroFormFieldAppearance.BackgroundColor Property

officefileapi-devexpress-dot-pdf-dot-pdfacroformfieldappearance-adab5777.md

latest2.6 KB
Original Source

PdfAcroFormFieldAppearance.BackgroundColor Property

Specifies the form field’s background color.

Namespace : DevExpress.Pdf

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

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public PdfRGBColor BackgroundColor { get; set; }
vb
Public Property BackgroundColor As PdfRGBColor

Property Value

TypeDescription
PdfRGBColor

A PdfRGBColor object that represents the form field’s background. The default value is null that corresponds to a transparent background color.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BackgroundColor 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-add-interactive-form-fields/CS/AddFormFieldsToExistingDocument/Program.cs#L16

csharp
textBox.Text = "Text Box";
textBox.Appearance.BackgroundColor = new PdfRGBColor(0.8, 0.5, 0.3);
textBox.Appearance.FontSize = 12;

pdf-document-api-add-interactive-form-fields/VB/AddFormFieldsToExistingDocument/Program.vb#L15

vb
textBox.Text = "Text Box"
textBox.Appearance.BackgroundColor = New PdfRGBColor(0.8, 0.5, 0.3)
textBox.Appearance.FontSize = 12

See Also

PdfAcroFormFieldAppearance Class

PdfAcroFormFieldAppearance Members

DevExpress.Pdf Namespace