TPDFlibFormSelection
Data types, forms, Unicode
Description
Describes a directed form text selection in UTF-16 code units, Unicode code points or grapheme clusters
Declaration
type
TPDFlibFormSelection = record
IndexUnit: TPDFlibFormSelectionUnit;
AnchorIndex: Integer;
CaretIndex: Integer;
StartIndex: Integer;
SelectionLength: Integer;
IsReversed: Boolean;
end;
Fields
| IndexUnit | Unit used by all returned indices and lengths |
|---|---|
| AnchorIndex | Fixed edge from which the selection was extended |
| CaretIndex | Moving edge of the directed selection |
| StartIndex | Lower logical edge of the normalized selection |
| SelectionLength | Distance between the normalized selection edges |
| IsReversed | True when the caret precedes the anchor |
See also
GetSelectionRange, SetSelectionRange, TPDFlibFormSelectionUnit