Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.TextMap Namespace / ITextMap Interface / HitTest Method
The X pixel location relative to the top left corner of the page.
The Y pixel location relative to the top left corner of the page.

In This Topic
    HitTest Method
    In This Topic
    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 GrapeCity.Documents.Pdf.Page.GetTextMap and other GetTextMap() overloads).

    Syntax
    'Declaration
     
    Function HitTest( _
       ByVal x As System.Single, _
       ByVal y As System.Single _
    ) As HitTestInfo
    HitTestInfo HitTest( 
       System.float x,
       System.float y
    )

    Parameters

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

    Return Value

    HitTestInfo containing the hit test result.
    See Also