Rich Text Editor for WinForms: How to Show a ToolTip With Information About the Document Element Located Under the Cursor Position
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 with information about a specific document element which is located under the test point. Retrieve the layout element by the RichEditHitTestResult.LayoutElement property. The RichEditHitTestResult.Nex property allows you to obtain the hit information about the element positioned next to the current hit element. After that, display the required information about the document layout element in the tooltip.
- Form1.cs (VB: Form1.vb)
- Program.cs (VB: Program.vb)
(you will be redirected to DevExpress.com to submit your response)