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

Appointment.Duration Property

Gets or sets the duration of the appointment.

Namespace: DevExpress.XtraScheduler

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

Declaration

TimeSpan Duration { get; set; }

Property Value

Type Description
TimeSpan

A TimeSpan value representing the duration of the appointment.

Remarks

The Duration property and the Appointment.Start property specify the value of the Appointment.End property for the appointment. This value is always calculated as End = Start + Duration.

Note

The Ticks property value of the Duration should be greater than or equal to 0.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Duration property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also