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

GanttViewHitInfo.HitTest Property

Gets the visual element located under the test object.

Namespace: DevExpress.Xpf.Gantt

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

NuGet Package: DevExpress.Wpf.Gantt

#Declaration

public GanttViewHitTest HitTest { get; }

#Property Value

Type Description
DevExpress.Xpf.Gantt.GanttViewHitTest

An enumeration value that identifies the visual element located under the test object.

#Remarks

The HitTest property allows you to identify the type of a visual element located under the test object.

Some visual elements can contain other visual elements. For example, the task row displays a task, connector, and the task content. In this instance, to identify whether the test object is located within the Gantt item row, use the GanttViewHitInfo.InRow property, because the HitTest property can return GanttViewHitTest.Task, GanttViewHitTest.Connector, or GanttViewHitTest.TaskContent.

See Hit Information for details.

See Also