Skip to main content

AppointmentCollection.AreIntersecting(Appointment, Appointment) Method

Checks if two specified appointments intersect.

Namespace: DevExpress.XtraScheduler

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

#Declaration

public static bool AreIntersecting(
    Appointment apt1,
    Appointment apt2
)

#Parameters

Name Type Description
apt1 Appointment

An Appointment object which specifies the first appointment whose time interval should be checked.

apt2 Appointment

An Appointment object which specifies the second appointment whose time interval should be checked.

#Returns

Type Description
Boolean

true if the specified appointments intersect; otherwise, false.

#Remarks

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 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 set to AppointmentType.Pattern), then the second appointment is considered to intersect with the first appointment if it intersects with any of the recurring appointment generated by this pattern.

See Also