Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

public class TreeListHitInfo

The following members 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();
   //...
}

#Inheritance

Object
TreeListHitInfo
See Also