ListBoxField
Vue de l’ensemble
‘ListBoxField’ est un type dans Aspose.PDF FOSS pour Go.
ListBoxField est un champ de sélection d’une liste unique ou multi-select.
Ce type fournit 11 méthodes pour travailler avec les objets de la listeBoxField dans les programmes Go. Les méthodologies disponibles comprennent: ‘AddOption’, ‘MultiSelect’, Options', ‘RemoveOpction’, 'Selected', ’SetMultSelekt', ‚SetReadOnly’, ‘SetRequired’, SetSelection’, ‘‘SetValue’, ‘’Value`. Tous les membres publics sont accessibles à toute application Go après l’installation du package Aspose.PDF FOSS for Go .
méthodes
| Signature | Description |
|---|---|
Value() → string | Returns the value. |
SetValue(s: string) → error | Sets the value value. |
Options() → []ChoiceOption | Returns the options. |
MultiSelect() → bool | Returns the multi select. |
Selected() → []int | Selected returns the indices of currently selected options. |
SetSelected(indices: ...int) → error | SetSelected 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) → error | RemoveOption removes the option at index. |
SetReadOnly(v: bool) | Sets the read only value. |
SetRequired(v: bool) | Sets the required value. |
Voir aussi
- Aspose.PDF — Résultats de l’API d’entreprise