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

IndexUnitUnit used by all returned indices and lengths
AnchorIndexFixed edge from which the selection was extended
CaretIndexMoving edge of the directed selection
StartIndexLower logical edge of the normalized selection
SelectionLengthDistance between the normalized selection edges
IsReversedTrue when the caret precedes the anchor

See also

GetSelectionRange, SetSelectionRange, TPDFlibFormSelectionUnit