This example demonstrates how to use the HitTestManager class to obtain document layout elements located under the specific point and show this information in the ToolTip.
Use the HitTestManager.HitTest method to get the RichEditHitTestResult object providing information about a specific document element which is located under the test point. Retrieve the layout element using the RichEditHitTestResult.LayoutElement property or obtain the hit information about the element positioned next to the current hit element using the RichEditHitTestResult.Next property. After that, display the required information about the document layout element in the ToolTip.
Use the HitTestManager.HitTest method to get the RichEditHitTestResult object providing information about a specific document element which is located under the test point. Retrieve the layout element using the RichEditHitTestResult.LayoutElement property or obtain the hit information about the element positioned next to the current hit element using the RichEditHitTestResult.Next property. After that, display the required information about the document layout element in the ToolTip.