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

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.

Voir aussi

  • Aspose.PDF — Résultats de l’API d’entreprise
 Français