A newer version of this page is available.

AppointmentItem.End Property

Gets or sets the appointment's end date and time.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v18.2.dll

Declaration

public DateTime End { get; set; }
Public Property End As Date

Property Value

Type Description
DateTime

A DateTime value that is the end of the appointment.

Remarks

The End property value is consistent with the AppointmentItem.Duration and AppointmentItem.End properties. The End value is calculated as End = Start + Duration. When setting the End property, the Appointment.Start property retains its value, and the Appointment.Duration is changed according to the new value of the End property.

IMPORTANT

If the new Appointment.End property's value is less than the Appointment.Start property's value, an exception fires.

NOTE

If the AppointmentItem.AllDay property is set to true, then the appointment's start date is the Date fraction of the End value, and the start time is 0:00.

See Also