Skip to main content
All docs
V24.2

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

TreeViewControl.CalcHitInfo(DependencyObject) Method

Returns information about the specified element in the TreeViewControl.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public TreeListViewHitInfo CalcHitInfo(
    DependencyObject d
)

#Parameters

Name Type Description
d DependencyObject

The element in the TreeViewControl.

#Returns

Type Description
TreeListViewHitInfo

The information about the specified view element.

#Remarks

The CalcHitInfo method allows you to obtain information about any element contained within the TreeViewControl. Use this method to determine which view element a user has clicked or which element is located under the mouse pointer. The CalcHitInfo method returns a TreeListViewHitInfo object that contains the required information (the visual element, its location within a view, etc.).

For information on how to recognize which element is located at the specified screen coordinates, refer to the following DevExpress WPF Grid help topic: Hit Information.

See Also