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