TPDFlibViewerSelection

Data types, viewer interaction

Description

Record describing one retained marquee selection in page-space points

SelectRegion normalises the rectangle, extracts the enclosed text into Text and offers the result to OnMarqueeSelect; retained selections are read back with GetSelectedRegion and counted by SelectedRegionCount

Declaration

TPDFlibViewerSelection = record Page: Integer; XPt, YPt, WPt, HPt: Double; Text: WideString; end;

Fields

PageOne-based page number of the selection
XPt, YPtTop-left corner of the rectangle in top-down page points
WPt, HPtWidth and height of the rectangle in page points
TextText extracted from the rectangle by GetTextInRegion

See also

SelectRegion, GetSelectedRegion, SelectedRegionCount, OnMarqueeSelect, TPDFlibViewerMarqueeSelect, GetTextInRegion, SelectedText