TextLength Property (Selection Object)

Retrieves the length of the selected text. If the length exceeds 2,147,483,647, the return value is 2,147,483,647.

[JavaScript]

len = document.selection.TextLength;

[VBScript]

len = document.selection.TextLength

Version

Supported in EmEditor Professional Version 26.1 or later.