Skip to main content

AppointmentCollection.CalcPatternInterval(Appointment) Method

Returns the time interval in which the occurrences of the specified pattern appointment take place.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v14.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 should be returned.

#Returns

Type Description
TimeInterval

A DevExpress.XtraScheduler.TimeInterval object that specifies the time interval for the appointment's reoccurrences.

#Remarks

The CalcPatternInterval method can be used to obtain the time interval for a specific pattern appointment's reoccurrences. If the appointment's recurrence range is of the RecurrenceRange.NoEndDate type, the time interval's End property is set to the MaxValue property's value.

NOTE

The start and end dates of this time interval may differ from the dates set via the RecurrenceInfo.Start and RecurrenceInfo.End properties of the pattern appointment's recurrence. This can take place if, in a chain of the pattern appointment's reoccurrences, there is any exceptional recurring appointment whose start or end date exceeds the stated recurrence's limits.

See Also