TimeInterval.SameDay Property
Gets a value that indicates whether the time interval’s start and end times are on the same day.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.1.Core.dll
NuGet Package: DevExpress.Scheduler.Core
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, if the time interval takes place within a day; false, if the time interval’s start and end times are on different days. |
Remarks
The SameDay property can be used to determine whether a time interval that isn’t an all day time interval (whose TimeInterval.AllDay property is set to false) starts and ends on the same day.
The SameDay property is designed primarily for internal purposes, i.e., for choosing a correct style when displaying appointments in the Day and WorkWeek views.
It is calculated by the expression that is equivalent to:
((Start.Date == End.Date) || (Duration < new TimeSpan(1, 0, 0, 0))) && (End == (Start.Date + new TimeSpan(1, 0, 0, 0)))