Skip to content

Obtain document layout elements located under the mouse pointer and show information in the tooltip

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/richedit-winforms-layout-element-under-cursor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Files to Review

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Obtain document layout elements located under the mouse pointer and show information in the tooltip

Topics

Resources

License

Stars

Watchers

Forks