ListBoxField

ListBoxField

Overview

ListBoxField is a type in Aspose.PDF FOSS for Go. Inherits from: fieldBase.

ListBoxField is a single- or multi-select list choice field.

Available methods include: AddOption, MultiSelect, Options, RemoveOption, Selected, SetMultiSelect, SetReadOnly, SetRequired, SetSelected, SetValue, Value. All public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.

Methods

SignatureDescription
Value() → stringReturns the value.
SetValue(s: string) → errorSets the value value.
Options() → []ChoiceOptionReturns the options.
MultiSelect() → boolReturns the multi select.
Selected() → []intSelected returns the indices of currently selected options.
SetSelected(indices: ...int) → errorSetSelected replaces the selected indices.
SetMultiSelect(v: bool)SetMultiSelect toggles bit 22 (/Ff MultiSelect) on a ListBoxField.
AddOption(o: ChoiceOption)AddOption appends a ChoiceOption to /Opt.
RemoveOption(index: int) → errorRemoveOption removes the option at index.
SetReadOnly(v: bool)Sets the read only value.
SetRequired(v: bool)Sets the required value.

See Also

 English