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

DateTimeRange.Contains(DateTime) Method

Checks whether the current time range contains the specified time.

Namespace: DevExpress.Maui.Scheduler

Assembly: DevExpress.Maui.Mvvm.dll

NuGet Package: DevExpress.Maui.Mvvm

#Declaration

C#
public bool Contains(
    DateTime date
)

#Parameters

Name Type Description
date DateTime

The time to be checked.

#Returns

Type Description
Boolean

true if the current time range contains the specified time; otherwise, false.

See Also