Skip to main content
All docs
V25.1
  • TreeViewControl.CalcHitInfo(Point) Method

    Returns information about the specified element in the TreeViewControl.

    Namespace: DevExpress.Xpf.Grid

    Assembly: DevExpress.Xpf.Grid.v25.1.dll

    NuGet Package: DevExpress.Wpf.Grid.Core

    Declaration

    public TreeListViewHitInfo CalcHitInfo(
        Point hitTestPoint
    )

    Parameters

    Name Type Description
    hitTestPoint Point

    The test point coordinates relative to the TreeViewControl‘s top-left corner.

    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 is located under the test point. 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