TextLength 屬性(Selection 物件)¶
檢索所選文字的長度。如果長度(以 UTF-16 字元計)超過 0x7fffffff,則此屬性會被截斷為該長度。 支持 EmEditor Professional 26.1 或更新版本。[JavaScript]¶
len = document.selection.TextLength;
[VBScript]¶
len = document.selection.TextLength
版本¶
巨集參考 — Selection 對象 — TextLength 屬性(Selection 物件)