ComboBoxField

ComboBoxField

Overview

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

ComboBoxField is a single-select dropdown choice field.

This type provides 10 methods for working with ComboBoxField objects in Go programs. Available methods include: AddOption, Options, RemoveOption, Selected, SetEditable, 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.
Selected() → intReturns the selected.
SetSelected(index: int) → errorSets the selected value.
SetEditable(v: bool)SetEditable toggles bit 19 (/Ff Edit).
AddOption(o: ChoiceOption)AddOption appends a ChoiceOption to /Opt.
RemoveOption(index: int) → errorRemoveOption removes the option at index.
SetReadOnly(v: bool)SetReadOnly sets the read-only flag; the choice types share the same setFlag-based mutators as the text field.
SetRequired(v: bool)Sets the required value.

See Also

 English