Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

void PoDoFo::PdfListField::SetSelectedItem ( int  nIndex )

Sets the currently selected item

nIndexindex of the currently selected item

Definition at line 858 of file PdfField.cpp.

References PoDoFo::PdfDictionary::AddKey(), PoDoFo::PdfVariant::GetDictionary(), and GetItem().

    PdfString selected = this->GetItem( nIndex );

    m_pObject->GetDictionary().AddKey( PdfName("V"), selected );

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index