PDFium Delphi Component Docs

SelectionMode property

Unit: PDFium

Optionally synchronizes a reading session with native word or chunk selection

Syntax

property SelectionMode: TPdfReadingSelectionMode;

Description

ModeBehaviour
rsmNoneDefault; playback leaves user text selection unchanged
rsmWordSelects the native word resolved from the current spoken offset, including estimated pacing
rsmChunkSelects each declared nonempty native source span of the current spoken chunk

Pause retains the selection; chunk changes update it, and Stop, natural completion, view changes, mode changes or destruction release the session-owned selection

The prior selection is restored only while the same TPdf instance, native document and content revision remain valid and the current selection still equals the session's last selection; a manual override is preserved

LoadSpoken copies span arrays as well as chunk records, so changing the caller's source spans does not redirect an active session

See Also

SelectFragment, SelectReadingUnit, TPdfReadingUnit, SelectionMode