XLL+ Class Library (7.0)

CXlControlListBox::GetTextLen

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

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