Class AcroListBoxField
A scrollable list box field.
public class AcroListBoxField : AcroFieldBase
- Inheritance
-
AcroListBoxField
- Inherited Members
- Extension Methods
Constructors
AcroListBoxField(DictionaryToken, string, AcroChoiceFieldFlags, AcroFieldCommonInformation, IReadOnlyList<AcroChoiceOption>, IReadOnlyList<string>, IReadOnlyList<int>, int?, int?, PdfRectangle?)
Create a new AcroListBoxField.
public AcroListBoxField(DictionaryToken dictionary, string fieldType, AcroChoiceFieldFlags fieldFlags, AcroFieldCommonInformation information, IReadOnlyList<AcroChoiceOption> options, IReadOnlyList<string> selectedOptions, IReadOnlyList<int> selectedOptionIndices, int? topIndex, int? pageNumber, PdfRectangle? bounds)
Parameters
dictionary
DictionaryTokenThe dictionary for this field.
fieldType
stringThe type of this field, must be Ch.
fieldFlags
AcroChoiceFieldFlagsThe flags specifying behaviour for this field.
information
AcroFieldCommonInformationAdditional information for this field.
options
IReadOnlyList<AcroChoiceOption>The options in this field.
selectedOptions
IReadOnlyList<string>The names of the selected options.
selectedOptionIndices
IReadOnlyList<int>The indices of the selected options where there are multiple with the same name.
topIndex
int?The first visible option index.
pageNumber
int?The number of the page this field appears on.
bounds
PdfRectangle?The location of this field on the page.
Properties
Flags
The flags specifying the behaviour of this field.
public AcroChoiceFieldFlags Flags { get; }
Property Value
Options
The options to be presented to the user.
public IReadOnlyList<AcroChoiceOption> Options { get; }
Property Value
SelectedOptionIndices
For multiple select lists with duplicate names gives the indices of the selected options.
public IReadOnlyList<int> SelectedOptionIndices { get; }
Property Value
SelectedOptions
The names of any currently selected options.
public IReadOnlyList<string> SelectedOptions { get; }
Property Value
SupportsMultiSelect
Whether the field allows multiple selections.
public bool SupportsMultiSelect { get; }
Property Value
TopIndex
For scrollable list boxes gives the index of the first visible option.
public int TopIndex { get; }