# PdfFormFieldStyle

Visual style for generated simple AcroForm fields.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`105ae88c45f6` with working tree changes

**Source**

[PdfFormFieldStyle.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L8)

**Attributes**

`Fluent`

Visual style for generated simple AcroForm fields.

## Inheritance

- object
- PdfFormFieldStyle

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Fillable equipment inspection](/showcase/pdf-equipment-inspection/) Sample
  
  Create a PDF form with named text fields, checkboxes and a disposition dropdown for an equipment return workflow. Includes runnable C# source.

## Usage

Explore 21 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 4

- Property [PdfFormFieldCreateOptions.Style](/api/pdf/officeimo-pdf-pdfformfieldcreateoptions/#property-style)
- Method [PdfFormFieldStyle.Clone](/api/pdf/officeimo-pdf-pdfformfieldstyle/#method-clone)
- Property [PdfTableCellCheckBox.Style](/api/pdf/officeimo-pdf-pdftablecellcheckbox/#property-style)
- Property [PdfTableCellFormField.Style](/api/pdf/officeimo-pdf-pdftablecellformfield/#property-style)

### Accepted by parameters 17

- Method [PdfContentBuilder.CheckBox](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-checkbox-string-boolean-nullable-officeimo-officelength-officeimo-officealignment-nullable-officeimo-officelength-nullable-officeimo-officelength-string-officeimo-pdf-pdfformfieldstyle) parameter `style`
- Method [PdfContentBuilder.ChoiceField](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-choicefield-string-collections-generic-ienumerable-system-string-string-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-officealignment-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-boolean-officeimo-pdf-pdfformfieldstyle) parameter `style`
- Method [PdfContentBuilder.MultiSelectChoiceField](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-multiselectchoicefield-string-collections-generic-ienumerable-system-string-collections-generic-ienumerable-system-string-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-officealignment-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-pdf-pdfformfieldstyle) parameter `style`
- Method [PdfContentBuilder.RadioButtonGroup](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-radiobuttongroup-string-collections-generic-ienumerable-system-string-string-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-officealignment-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-pdf-pdfformfieldstyle) parameter `style`
- Method [PdfContentBuilder.TextField](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-textfield-string-nullable-officeimo-officelength-nullable-officeimo-officelength-string-officeimo-officealignment-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-pdf-pdfformfieldstyle) parameter `style`
- Extension method [PdfFormFieldCreateOptions.Style](/api/pdf/officeimo-pdf-pdfformfieldcreateoptions/#extension-style-officeimo-pdf-pdfformfieldcreateoptions-action-officeimo-pdf-pdfformfieldstyle) parameter `configure`
- Extension method [PdfFormFieldCreateOptions.Style](/api/pdf/officeimo-pdf-pdfformfieldcreateoptions/#extension-style-officeimo-pdf-pdfformfieldcreateoptions-officeimo-pdf-pdfformfieldstyle) parameter `value`
- Method [PdfFormFieldCreateOptionsFluent.Style](/api/pdf/officeimo-pdf-pdfformfieldcreateoptionsfluent/#method-style-officeimo-pdf-pdfformfieldcreateoptions-action-officeimo-pdf-pdfformfieldstyle) parameter `configure`
- Method [PdfFormFieldCreateOptionsFluent.Style](/api/pdf/officeimo-pdf-pdfformfieldcreateoptionsfluent/#method-style-officeimo-pdf-pdfformfieldcreateoptions-officeimo-pdf-pdfformfieldstyle) parameter `value`
- Method [PdfPageCanvas.CheckBox](/api/pdf/officeimo-pdf-pdfpagecanvas/#method-checkbox-string-boolean-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-string-officeimo-pdf-pdfformfieldstyle) parameter `style`
- Method [PdfPageCanvas.CheckBoxWithExportValue](/api/pdf/officeimo-pdf-pdfpagecanvas/#method-checkboxwithexportvalue-string-boolean-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-string-string-officeimo-pdf-pdfformfieldstyle) parameter `style`
- Method [PdfPageCanvas.ChoiceField](/api/pdf/officeimo-pdf-pdfpagecanvas/#method-choicefield-string-collections-generic-ienumerable-system-string-collections-generic-ienumerable-system-string-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-nullable-officeimo-officelength-boolean-boolean-officeimo-pdf-pdfformfieldstyle) parameter `style`
- Method [PdfPageCanvas.RadioButton](/api/pdf/officeimo-pdf-pdfpagecanvas/#method-radiobutton-string-string-boolean-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-pdf-pdfformfieldstyle) parameter `style`
- Method [PdfPageCanvas.TextField](/api/pdf/officeimo-pdf-pdfpagecanvas/#method-textfield-string-string-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-nullable-officeimo-officelength-officeimo-pdf-pdfformfieldstyle) parameter `style`
- Constructor [PdfTableCellCheckBox.PdfTableCellCheckBox](/api/pdf/officeimo-pdf-pdftablecellcheckbox/#constructor-ctor-string-boolean-nullable-officeimo-officelength-string-officeimo-pdf-pdfformfieldstyle) parameter `style`
- Method [PdfTableCellFormField.ChoiceField](/api/pdf/officeimo-pdf-pdftablecellformfield/#method-choicefield-string-collections-generic-ienumerable-system-string-string-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-boolean-officeimo-pdf-pdfformfieldstyle) parameter `style`
- Method [PdfTableCellFormField.TextField](/api/pdf/officeimo-pdf-pdftablecellformfield/#method-textfield-string-string-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-pdf-pdfformfieldstyle) parameter `style`

Filter members 

Show inherited

## Constructors

`public PdfFormFieldStyle()` [#](#constructor-ctor)

[PdfFormFieldStyle.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L8)

## Methods

`public PdfFormFieldStyle Clone()` [#](#method-clone)

[PdfFormFieldStyle.cs:193](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L193)

Creates a copy of this form field style.

Returns

`PdfFormFieldStyle`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OfficeColor? BackgroundColor { get; set; }` [#](#property-backgroundcolor)

[PdfFormFieldStyle.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L21)

Background fill color. Set to null for transparent field appearance streams.

`public OfficeColor? BorderColor { get; set; }` [#](#property-bordercolor)

[PdfFormFieldStyle.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L24)

Border stroke color. Set to null for no border stroke.

`public OfficeColor TextColor { get; set; }` [#](#property-textcolor)

[PdfFormFieldStyle.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L27)

Text color for generated text and choice field appearance streams.

`public OfficeColor MarkColor { get; set; }` [#](#property-markcolor)

[PdfFormFieldStyle.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L30)

Check mark or radio dot color for generated button field appearance streams.

`public bool IsReadOnly { get; set; }` [#](#property-isreadonly)

[PdfFormFieldStyle.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L33)

When true, generated AcroForm fields emit the common read-only field flag.

`public bool IsRequired { get; set; }` [#](#property-isrequired)

[PdfFormFieldStyle.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L36)

When true, generated AcroForm fields emit the common required field flag.

`public bool IsNoExport { get; set; }` [#](#property-isnoexport)

[PdfFormFieldStyle.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L39)

When true, generated AcroForm fields emit the common no-export field flag.

`public bool IsMultiline { get; set; }` [#](#property-ismultiline)

[PdfFormFieldStyle.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L42)

When true, generated text fields emit the multiline field flag.

`public bool IsPassword { get; set; }` [#](#property-ispassword)

[PdfFormFieldStyle.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L48)

When true, generated text fields emit the password field flag.

`public bool IsFileSelect { get; set; }` [#](#property-isfileselect)

[PdfFormFieldStyle.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L51)

When true, generated text fields emit the file-select field flag.

`public bool DoesNotSpellCheck { get; set; }` [#](#property-doesnotspellcheck)

[PdfFormFieldStyle.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L54)

When true, generated text and choice fields emit the do-not-spell-check field flag.

`public bool DoesNotScroll { get; set; }` [#](#property-doesnotscroll)

[PdfFormFieldStyle.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L57)

When true, generated text fields emit the do-not-scroll field flag.

`public bool IsComb { get; set; }` [#](#property-iscomb)

[PdfFormFieldStyle.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L60)

When true, generated text fields emit the comb field flag. Requires [PdfFormFieldStyle.MaxLength](/api/pdf/officeimo-pdf-pdfformfieldstyle/).

`public bool IsEditableChoice { get; set; }` [#](#property-iseditablechoice)

[PdfFormFieldStyle.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L63)

When true, generated combo choice fields emit the editable-choice field flag.

`public bool IsSortedChoice { get; set; }` [#](#property-issortedchoice)

[PdfFormFieldStyle.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L66)

When true, generated choice fields emit the sort field flag.

`public bool CommitsOnSelectionChange { get; set; }` [#](#property-commitsonselectionchange)

[PdfFormFieldStyle.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L69)

When true, generated choice fields emit the commit-on-selection-change field flag.

`public int? MaxLength { get; set; }` [#](#property-maxlength)

[PdfFormFieldStyle.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L73)

Optional maximum text length emitted as /MaxLen for generated text fields.

`public PdfFormFieldTextAlignment? TextAlignment { get; set; }` [#](#property-textalignment)

[PdfFormFieldStyle.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L85)

Optional text alignment for generated text and choice fields. When null, document-level AcroForm defaults can apply.

`public OfficeLength BorderWidth { get; set; }` [#](#property-borderwidth)

[PdfFormFieldStyle.cs:97](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L97)

Border stroke width in points. Set to 0 to suppress border drawing.

`public OfficeLength CornerRadius { get; set; }` [#](#property-cornerradius)

[PdfFormFieldStyle.cs:109](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L109)

Uniform circular corner radius in points for generated field appearance streams.

`public PdfFormFieldBorderStyle BorderStyle { get; set; }` [#](#property-borderstyle)

[PdfFormFieldStyle.cs:121](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L121)

Border rendering style for generated field dictionaries and appearance streams.

`public IReadOnlyList<OfficeLength>? BorderDashPattern { get; set; }` [#](#property-borderdashpattern)

[PdfFormFieldStyle.cs:139](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L139)

Optional border dash pattern emitted into generated appearance streams. Null or empty output means a solid border.

`public string? AlternateName { get; set; }` [#](#property-alternatename)

[PdfFormFieldStyle.cs:175](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L175)

Alternate field name emitted as AcroForm /TU metadata for accessibility-oriented field descriptions.

`public string? MappingName { get; set; }` [#](#property-mappingname)

[PdfFormFieldStyle.cs:184](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfFormFieldStyle.cs#L184)

Mapping name emitted as AcroForm /TM metadata for export and assistive-processing workflows.

<!-- PowerForge markdown artifact sha256:F34111E426D5C262C111FBB8FA1DF6B96227B5077A0BE0B217E66D64FEF75CB3 -->
