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
| Page | One-based page number of the selection |
|---|---|
| XPt, YPt | Top-left corner of the rectangle in top-down page points |
| WPt, HPt | Width and height of the rectangle in page points |
| Text | Text extracted from the rectangle by GetTextInRegion |
See also
SelectRegion, GetSelectedRegion, SelectedRegionCount, OnMarqueeSelect, TPDFlibViewerMarqueeSelect, GetTextInRegion, SelectedText