PoDoFo 0.9.20
PoDoFo::PdfComboBox Class Reference

#include <PdfComboBox.h>

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

Public Member Functions

void SetEditable (bool edit)
bool IsEditable () const
Public Member Functions inherited from PoDoFo::PdChoiceField
void InsertItem (const PdfString &value, nullable< const PdfString & > displayName={ })
void RemoveItem (unsigned index)
PdfString GetItem (unsigned index) const
nullable< const PdfString & > GetItemDisplayText (int index) const
unsigned GetItemCount () const
void SetSelectedIndex (int index)
int GetSelectedIndex () const
bool IsComboBox () const
void SetSpellcheckingEnabled (bool spellCheck)
bool IsSpellcheckingEnabled () const
void SetSorted (bool sorted)
bool IsSorted () const
void SetMultiSelect (bool multi)
bool IsMultiSelect () const

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