Property TextLength of interface IUIX_Edit returns Value of LONG ...
HRESULT get_TextLength([out, retval] LONG* pTextLen);
See also IUIX_Edit.