Back to Devexpress

RecurrenceInfo.Duration Property

corelibraries-devexpress-dot-xtrascheduler-dot-recurrenceinfo-d1a0e55f.md

latest2.7 KB
Original Source

RecurrenceInfo.Duration Property

Gets or sets the recurrence’s duration.

Namespace : DevExpress.XtraScheduler

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

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public TimeSpan Duration { get; set; }
vb
Public Property Duration As TimeSpan

Property Value

TypeDescription
TimeSpan

A TimeSpan value that specifies the duration of the recurrence.

|

Remarks

If the RecurrenceInfo.Range property is set to the RecurrenceRange.EndByDate value, 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 via 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 is set to either the RecurrenceRange.OccurrenceCount or RecurrenceRange.NoEndDate value.

Implements

Duration

See Also

EndByDate

Start

End

RecurrenceInfo Class

RecurrenceInfo Members

DevExpress.XtraScheduler Namespace