PoDoFo 1.0.0-dev
|
A combo box with a drop down list of items. More...
#include <PdfComboBox.h>
Public Member Functions | |
void | SetEditable (bool edit) |
Sets the combobox to be editable. | |
bool | IsEditable () const |
PdfComboBox * | GetParent () |
const PdfComboBox * | GetParent () const |
![]() | |
void | InsertItem (const PdfString &value, nullable< const PdfString & > displayName={ }) |
Inserts a new item into the list. | |
void | RemoveItem (unsigned index) |
Removes an item for the list. | |
PdfString | GetItem (unsigned index) const |
nullable< const PdfString & > | GetItemDisplayText (int index) const |
unsigned | GetItemCount () const |
void | SetSelectedIndex (int index) |
Sets the currently selected item. | |
int | GetSelectedIndex () const |
Sets the currently selected item. | |
bool | IsComboBox () const |
void | SetSpellCheckingEnabled (bool spellCheck) |
Enable/disable spellchecking for this combobox. | |
bool | IsSpellCheckingEnabled () const |
void | SetSorted (bool sorted) |
Enable or disable sorting of items. | |
bool | IsSorted () const |
void | SetMultiSelect (bool multi) |
Sets whether multiple items can be selected by the user in the list. | |
bool | IsMultiSelect () const |
void | SetCommitOnSelectionChange (bool commit) |
bool | IsCommitOnSelectionChange () const |
Friends | |
class | PdfField |
A combo box with a drop down list of items.
bool PdfComboBox::IsEditable | ( | ) | const |
Sets the combobox to be editable.
edit | if true the combobox can be edited by the user |
By default a combobox is not editable