Skip to main content

RecurrenceInfo.Duration Property

Gets or sets the recurrence's duration.

Namespace: DevExpress.XtraScheduler

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

#Declaration

public TimeSpan Duration { get; set; }

#Property Value

Type Description
TimeSpan

A TimeSpan value that specifies the duration of the recurrence.

#Remarks

If the RecurrenceInfo.Range property value is set to RecurrenceRange.EndByDate, the Duration property can be used together with the RecurrenceInfo.Start property to define the range of recurrence - the period of time in which the appointment reoccurs. The Duration property specifies the recurrence's duration.

Note that when defining the range of recurrence in code, the RecurrenceInfo.End property can be used instead of the Duration property. These two properties are interdependent, so changing the value of the Duration property affects the RecurrenceInfo.End property's value and vice versa.

The value of the Duration property is ignored if the RecurrenceInfo.Range property value is set to either RecurrenceRange.OccurrenceCount or RecurrenceRange.NoEndDate.

See Also