TPDFlibFormSelection

資料類型、表單、Unicode

描述

以 UTF-16 代碼單元、Unicode 碼位或字素叢集描述方向性的表單文字選取範圍

宣告

type
  TPDFlibFormSelection = record
    IndexUnit: TPDFlibFormSelectionUnit;
    AnchorIndex: Integer;
    CaretIndex: Integer;
    StartIndex: Integer;
    SelectionLength: Integer;
    IsReversed: Boolean;
  end;

欄位

IndexUnit所有傳回索引與長度使用的單位
AnchorIndex選取範圍延伸起始的固定端
CaretIndex方向性選取範圍的移動端
StartIndex正規化選取範圍的較低邏輯端
SelectionLength正規化選取範圍兩端之間的距離
IsReversed插入點在錨點之前時為 True

另請參閱

GetSelectionRange, SetSelectionRange, TPDFlibFormSelectionUnit