TextLength 属性(Selection 对象)¶
获取所选文本的长度。如果长度超过 2,147,483,647,则返回值为 2,147,483,647。 支持 EmEditor Professional 26.1 或更高版本。[JavaScript]¶
len = document.selection.TextLength;
[VBScript]¶
len = document.selection.TextLength
版本¶
宏参考 — Selection 对象 — TextLength 属性(Selection 对象)