SelectionLength
表單、互動、Unicode
描述
傳回作用中編輯正規化選取範圍的 UTF-16 長度
長度由 SelectionAnchor 與 SelectionCaret 之間的絕對距離推導,與選取方向無關
選取編輯與取代操作在計算受影響文字範圍時讀取此長度
宣告
property SelectionLength: Integer;
值
傳回選取的 UTF-16 代碼單元數量,選取範圍已收合或沒有作用中的編輯時則為零
另請參閱
SelectionStart, SelectionAnchor, SelectionCaret, NormalizeSelection, GetSelectedText