Skip to main content
A newer version of this page is available.
All docs
V19.1

AppointmentItem.AllDay Property

Gets or sets whether the current appointment lasts the entire day (or several days).

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v19.1.dll

Declaration

public bool AllDay { get; set; }

Property Value

Type Description
Boolean

True, if this is an all-day appointment; otherwise, false.

Remarks

Use the AllDay property to specify if the appointment lasts the entire day (or several days). Note that if the property is set to true, the values of the AppointmentItem.Start and AppointmentItem.End properties are ignored and instead, the Start of the appointment is considered to be 00:00 of the AppointmentItem.Start day, and the End of the appointment is considered to be 00:00 of the AppointmentItem.End day.

Regarding the time zone, all-day appointments are treated as “floating”, so that they do not belong to a particular time zone. When the current time zone of the scheduler (obtained from the host settings or specified by the SchedulerControl.TimeZone property) changes, the Start and End properties of the all-day appointment remain the same.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AllDay 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