Skip to main content
A newer version of this page is available. .

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.v19.1.dll

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