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

GanttView.CalcHitInfo(Point) Method

Returns information about the specified element contained within the GanttView.

Namespace: DevExpress.Xpf.Gantt

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

NuGet Package: DevExpress.Wpf.Gantt

#Declaration

public GanttViewHitInfo CalcHitInfo(
    Point hitTestPoint
)

#Parameters

Name Type Description
hitTestPoint Point

A Point structure which specifies the test point coordinates relative to the control’s top-left corner.

#Returns

Type Description
GanttViewHitInfo

A GanttViewHitInfo object that contains information about the specified view element.

#Remarks

The CalcHitInfo method allows you to obtain information about any element contained within the GanttView. This can be useful when it is required to determine which element of a view is located under the test point. The CalcHitInfo method returns a GanttViewHitInfo object that contains the required information (visual element, its location within a view, etc.).

To learn more, see Hit Information.

See Also