TreeListHitInfo Class
Represents a class that contains information about what is located at a specific point within the TreeList control.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v18.1.dll
Declaration
Related API Members
The following members accept/return TreeListHitInfo objects:
Remarks
These class members can be used to provide a user with information about a specific point of the TreeList control. The TreeList.CalcHitInfo method of the TreeList object returns a TreeListHitInfo class instance containing information about a specific point of the TreeList control.
Example
The code below obtains the name of the element located under the mouse pointer. The MouseMove event is handled to track mouse pointer movement.
using DevExpress.XtraTreeList;
//...
private void treeList1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e) {
TreeListHitInfo hi = treeList1.CalcHitInfo(new Point(e.X, e.Y));
string elementName = hi.HitInfoType.ToString();
//...
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the TreeListHitInfo class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.