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

CalcNodeDragImageIndexEventArgs.PtClient Property

Gets the current mouse pointer’s coordinates relative to the top-left corner of the control.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public Point PtClient { get; }

#Property Value

Type Description
Point

A Point structure representing the current mouse pointer’s coordinates.

#Remarks

You can use the value obtained via the PtClient property to identify the element currently located under the mouse pointer. Pass this value to the TreeList.CalcHitInfo method, then use members of the obtained TreeListHitInfo object to identify the element.

This can be used to display various images with respect to the element located under the mouse pointer.

Note: you can identify the node currently located under the mouse pointer directly via the NodeEventArgs.Node property.

See Also