AppointmentCollection.AreIntersecting(Appointment, Appointment) Method

Checks if the two specified appointments intersect.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.2.Core.dll

Declaration

public static bool AreIntersecting(
    Appointment apt1,
    Appointment apt2
)
Public Shared Function AreIntersecting(
    apt1 As Appointment,
    apt2 As Appointment
) As Boolean

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.

See Also