PoDoFo  1.0.0-dev
Public Member Functions | Friends | List of all members
PoDoFo::PdfComboBox Class Referencefinal

A combo box with a drop down list of items. More...

#include <PdfComboBox.h>

Inheritance diagram for PoDoFo::PdfComboBox:
PoDoFo::PdChoiceField

Public Member Functions

void SetEditable (bool edit)
 Sets the combobox to be editable. More...
 
bool IsEditable () const
 
PdfComboBoxGetParent ()
 
const PdfComboBoxGetParent () const
 
- Public Member Functions inherited from PoDoFo::PdChoiceField
void InsertItem (const PdfString &value, nullable< const PdfString & > displayName={ })
 Inserts a new item into the list. More...
 
void RemoveItem (unsigned index)
 Removes an item for the list. More...
 
PdfString GetItem (unsigned index) const
 
nullable< const PdfString & > GetItemDisplayText (int index) const
 
unsigned GetItemCount () const
 
void SetSelectedIndex (int index)
 Sets the currently selected item. More...
 
int GetSelectedIndex () const
 Sets the currently selected item. More...
 
bool IsComboBox () const
 
void SetSpellCheckingEnabled (bool spellCheck)
 Enable/disable spellchecking for this combobox. More...
 
bool IsSpellCheckingEnabled () const
 
void SetSorted (bool sorted)
 Enable or disable sorting of items. More...
 
bool IsSorted () const
 
void SetMultiSelect (bool multi)
 Sets whether multiple items can be selected by the user in the list. More...
 
bool IsMultiSelect () const
 
void SetCommitOnSelectionChange (bool commit)
 
bool IsCommitOnSelectionChange () const
 

Friends

class PdfField
 

Detailed Description

A combo box with a drop down list of items.

Member Function Documentation

◆ IsEditable()

bool PdfComboBox::IsEditable ( ) const
Returns
true if this is an editable combobox

◆ SetEditable()

void PdfComboBox::SetEditable ( bool  edit)

Sets the combobox to be editable.

Parameters
editif true the combobox can be edited by the user

By default a combobox is not editable


The documentation for this class was generated from the following files: