ComboBoxField
Overview
ComboBoxField is a type in Aspose.PDF FOSS for Go.
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
| Signature | Description |
|---|---|
Value() → string | Returns the value. |
SetValue(s: string) → error | Sets the value value. |
Options() → []ChoiceOption | Returns the options. |
Selected() → int | Returns the selected. |
SetSelected(index: int) → error | Sets the selected value. |
SetEditable(v: bool) | SetEditable toggles bit 19 (/Ff Edit). |
AddOption(o: ChoiceOption) | AddOption appends a ChoiceOption to /Opt. |
RemoveOption(index: int) → error | RemoveOption removes the option at index. |
SetReadOnly(v: bool) | SetReadOnly/SetRequired on choice types. |
SetRequired(v: bool) | Sets the required value. |