XLL+ Class Library

CXlControlListBox::GetTextLen

Gets the length of a string in a list-box item

[C++]
int GetTextLen(
   int nIndex
) const;

Parameters

nIndex

Specifies the zero-based index of the item in the list box.

Return value

The length (in bytes) of the string, excluding the terminating null character. If nIndex does not specify a valid index, the return value is -1.

Remarks

Gets the length of a string in a list-box item.

Requirements

Header: xldialog.h

See Also

CXlControlListBox Class | CXlControlListBox Methods