[]
        
(Showing Draft Content)

C1.Win.Document.Util.C1DXTextLayout.HitTest

HitTest Method

HitTest(double, double)

Use this function passing in a specific pixel location relative to the top-left location of the layout box and obtains the information about the correspondent hit-test metrics of the text string where the hit-test has occurred.

Declaration
public override C1TextLayout.HitTestInfo HitTest(double x, double y)
Public Overrides Function HitTest(x As Double, y As Double) As C1TextLayout.HitTestInfo
Parameters
Type Name Description
double x

The pixel location X to hit-test, relative to the top-left location of the layout box.

double y

The pixel location Y to hit-test, relative to the top-left location of the layout box.

Returns
Type Description
C1TextLayout.HitTestInfo

Returns C1.Document.Util.C1TextLayout.HitTestInfo contains information about hit test.

Overrides