GetItemText

Description

Gets the text of the item at the specified index..

Applies to

PDFFormFieldComboBox object

PDFFormFieldListBox object

Syntax

string GetItemText(long index)

Argument

Description

index

The index of the item in the object.


Return value

String. Returns the text of the specified item if it succeeds, or returns null if otherwise.

Example

The following code example gets the text of the item at the index 1 in the PDFFormFieldComboBox object lpdf_combobox.

string ls_text
ls_text = lpdf_combobox.getitemtext(1)

See also

SetItemList

AddItem

GetItemCount

RemoveItem

RemoveAllItem

SetReadOnly

GetReadOnly