Class ChoiceField
Abstract base for choice fields (spec §12.7.3.3). Choice fields present a list of options from which the user selects. The two concrete subtypes are DropdownField (combo box) and ListBoxField (scrollable list).
Inherited Members
Namespace: DRIT.Pdf.Forms
Assembly: DRIT.Pdf.dll
Syntax
public abstract class ChoiceField : VariableTextField
Properties
CommitOnSelectionChange
When true the new value is committed as soon as a selection is made
(spec §12.7.3.3, field flag bit 27 — CommitOnSelChange).
Declaration
public bool CommitOnSelectionChange { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Items
The ordered list of options presented to the user (spec §12.7.3.3, /Opt entry). Each option may carry distinct export and display values.
Declaration
public ChoiceOptionCollection Items { get; }
Property Value
| Type | Description |
|---|---|
| ChoiceOptionCollection |
Sort
When true the options are sorted alphabetically before display
(spec §12.7.3.3, field flag bit 20 — Sort).
Declaration
public bool Sort { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |