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.v20.1.dll

Declaration

public class TreeListHitInfo
Public Class TreeListHitInfo

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.

Examples

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