Skip to main content
A newer version of this page is available. .

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

Declaration

public static TimeInterval CalcPatternInterval(
    Appointment pattern
)

Parameters

Name Type Description
pattern Appointment

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

Returns

Type Description
TimeInterval

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

Remarks

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.

Note

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