# PdfFormFieldOption

AcroForm choice option used by generation and read from a field /Opt array.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfFormField.cs:485](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L485)

**Modifiers**

sealed

AcroForm choice option used by generation and read from a field /Opt array.

## Inheritance

- object
- PdfFormFieldOption

## Usage

Explore 4 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 3

- Property [PdfFormField.DefaultSelectedOptions](/api/pdf/officeimo-pdf-pdfformfield/#property-defaultselectedoptions)
- Property [PdfFormField.Options](/api/pdf/officeimo-pdf-pdfformfield/#property-options)
- Property [PdfFormField.SelectedOptions](/api/pdf/officeimo-pdf-pdfformfield/#property-selectedoptions)

### Accepted by parameters 1

- Method [PdfPageCanvas.ChoiceField](/api/pdf/officeimo-pdf-pdfpagecanvas/#method-choicefield-string-collections-generic-ienumerable-officeimo-pdf-pdfformfieldoption-collections-generic-ienumerable-system-string-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-nullable-officeimo-officelength-boolean-boolean-officeimo-pdf-pdfformfieldstyle) parameter `options`

Filter members 

Show inherited

## Constructors

`public PdfFormFieldOption(string exportValue, string displayText)` [#](#constructor-ctor-string-string)

[PdfFormField.cs:485](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L485)

Creates one choice option with separate export and display values.

Parameters

**exportValue string required**

**displayText string required**

## 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 string ExportValue { get; }` [#](#property-exportvalue)

[PdfFormField.cs:491](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L491)

Export value used by the form field.

`public string DisplayText { get; }` [#](#property-displaytext)

[PdfFormField.cs:494](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L494)

User-facing option text displayed by PDF viewers.

`public bool HasSeparateDisplayText { get; }` [#](#property-hasseparatedisplaytext)

[PdfFormField.cs:497](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L497)

True when the option provides separate export and display text.

<!-- PowerForge markdown artifact sha256:1564B5C2D8D2A73E2106C8F0CC175EF5C2623B8A789048E1F57051CD67794986 -->
