[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.TextMap.ITextMap.HitTest

HitTest Method

HitTest(float, float)

Performs hit testing on the map.

This method accepts a pixel location relative to the top left corner of the page, and provides info about the text in that location.

The pixel resolution is the resolution specified when building this text map (see GetTextMap(float, float, bool) and other GetTextMap() overloads).

Declaration
HitTestInfo HitTest(float x, float y)
Function HitTest(x As Single, y As Single) As HitTestInfo
Parameters
Type Name Description
float x

The X pixel location relative to the top left corner of the page.

float y

The Y pixel location relative to the top left corner of the page.

Returns
Type Description
HitTestInfo

HitTestInfo containing the hit test result.