TextLength 属性(Selection 对象)
获取所选文本的长度。如果长度以 UTF-16 字符计超过 0x7fffffff,则该属性会被截断到该长度。 支持 EmEditor Professional 26.1 或更高版本。[JavaScript]
len = document.selection.TextLength;
[VBScript]
len = document.selection.TextLength
版本
宏参考 — Selection 对象 — TextLength 属性(Selection 对象)
获取所选文本的长度。如果长度以 UTF-16 字符计超过 0x7fffffff,则该属性会被截断到该长度。 支持 EmEditor Professional 26.1 或更高版本。[JavaScript]
len = document.selection.TextLength;
[VBScript]
len = document.selection.TextLength
版本