ListBoxField

ListBoxField

Overview

ListBoxField is a type in Aspose.PDF FOSS for Go.

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

This type provides 11 methods for working with ListBoxField objects in Go programs. 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