AddHighlightRegion

Viewer interaction

Description

Adds a persistent translucent highlight over the given rectangle of a page; the rectangle is given in top-down page user-space points, the same convention GetTextInRegion usesNegative width or height is normalised so any drag direction produces a valid rectangle, requests for pages below 1 are ignored, and the region survives zooming, rotating and navigation until it is cleared; the bar is painted in

HighlightColor and is also included in captured bitmaps

Syntax

Delphi

Procedure TPDFlibViewer.AddHighlightRegion(APage: Integer; XPos, YPos, RWidth, RHeight: Double);

Parameters

APageOne-based page index
XPos, YPosTop-left corner of the region in page points
RWidth, RHeightExtents in page points; negative values are normalised

See also

TPDFlibViewer, ClearHighlightRegions, HighlightRegionCount, HighlightColor, GetTextInRegion