Skip to main content

SchedulerHitInfo.FindHitInfo(SchedulerHitTest, SchedulerHitTest) Method

Searches the hit information for the specified type(s) of the element, traversing to the depth of the specified stop type(s).

Namespace: DevExpress.XtraScheduler.Drawing

Assembly: DevExpress.XtraScheduler.v24.1.dll

NuGet Package: DevExpress.Win.Scheduler

Declaration

public SchedulerHitInfo FindHitInfo(
    SchedulerHitTest types,
    SchedulerHitTest stopTypes
)

Parameters

Name Type Description
types SchedulerHitTest

A SchedulerHitTest enumeration value.

stopTypes SchedulerHitTest

A SchedulerHitTest enumeration value.

Returns

Type Description
SchedulerHitInfo

A SchedulerHitInfo object.

Remarks

The method traverses the SchedulerHitInfo objects beginning from the topmost element located under the cursor. When the type of the current element equals the type passed as a parameter, the method exits and returns the hit information for that element. The search depth is limited to the element, specified as stopTypes parameter. The search stops when it reaches that element or when there are no more elements to pass through. In this instance it returns empty SchedulerHitInfo object.

You can combine several SchedulerHitTest values that represent element types to search for. You can also specify the stopTypes as a combination of element types. To accomplish this, use an OR logical operator to join SchedulerHitTest values in expressions.

See Also