TPDFlibViewerMarqueeSelect

Events, viewer interaction

Description

Fires through OnMarqueeSelect when a marquee selection completes, either dragged with the select tool or created programmatically through SelectRegion

Keep starts as True: leaving it True retains the selection in the viewer's list where GetSelectedRegion and SelectedRegionCount reach it, while setting it to False discards the selection after the handler returns

Declaration

TPDFlibViewerMarqueeSelect = procedure(Sender: TObject; const Selection: TPDFlibViewerSelection; var Keep: Boolean) of object;

Parameters

SenderThe viewer that produced the selection
SelectionPage, page-space rectangle and extracted text of the selection
KeepStarts True; set to False to drop the selection instead of retaining it

See also

OnMarqueeSelect, SelectRegion, GetSelectedRegion, SelectedRegionCount, TPDFlibViewerSelection, SelectedText, TPDFlibViewer