AppointmentCollection.AreIntersecting(Appointment, Appointment) Method
Checks if the two specified appointments intersect.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.Core.dll
NuGet Package: DevExpress.Scheduler.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
apt1 | Appointment | An Appointment object which is the first appointment whose time interval is to be checked. |
apt2 | Appointment | An Appointment object which is the second appointment whose time interval is to be checked. |
Returns
Type | Description |
---|---|
Boolean | true, if the two appointments intersect; otherwise, false. |
Remarks
The two appointments are considered intersecting if the time intervals specified by the Appointment.Start and Appointment.End properties overlap. The boundaries of the time intervals are not included in the check.
If the two specified appointments are equal, then the return value is false.
Note
If one of the specified appointments is a recurrence pattern (its Appointment.Type property value is AppointmentType.Pattern), then the second appointment is considered to intersect with the first appointment if it intersects with any recurring appointment in a series generated by this pattern.