A newer version of this page is available. Switch to the current version.

AppointmentCollection.CalcPatternInterval(Appointment) Method

Returns the time interval that encompasses occurrences of the specified pattern appointment.

Namespace: DevExpress.XtraScheduler

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


public static TimeInterval CalcPatternInterval(
    Appointment pattern
Public Shared Function CalcPatternInterval(
    pattern As Appointment
) As TimeInterval


Name Type Description
pattern Appointment

An Appointment object that specifies the pattern appointment whose recurrence range is used for calculations.


Type Description

A TimeInterval object that is the time interval in which recurring appointments are located.


If the appointment's recurrence range is of the RecurrenceRange.NoEndDate type, the time interval's TimeInterval.End property is set to the MaxValue property's value.


The start and end dates of a returned time interval may differ from the dates specified in the RecurrenceInfo.Start and RecurrenceInfo.End properties of the pattern's Appointment.RecurrenceInfo. The CalcPatternInterval method takes into account all appointments which belong to the series originating from the pattern, including exceptions. An exception may occupy a time interval outside the range specified for the recurrence pattern.

See Also