All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

SchedulerItemBase.QueryEnd Property

Gets the normalized appointment end value which is recommended for use in interval-based appointment data source queries.

Namespace: DevExpress.Xpf.Scheduling

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

Declaration

public DateTime QueryEnd { get; }
Public ReadOnly Property QueryEnd As Date

Property Value

Type Description
DateTime

A DateTime value that is the end of the appointment.

Remarks

The SchedulerItemBase.QueryStart and QueryEnd properties allow you to calculate the correct interval for use in a SELECT query when handling the SchedulerControl.VisibleIntervalsChanged event to fetch appointments from the data source. The use of the SchedulerItemBase.Start and SchedulerItemBase.End properties is not recommended in this situation, because you can miss the appointment pattern and lose appointment exceptions.

The Interval property returns the normalized duration based on the QueryStart and QueryEnd values.

The QueryEnd property return values are dependent on the appointment type, as shown in the following table.

Appointment Type QueryEnd Value
AppointmentType.Normal The SchedulerItemBase.End value.
AppointmentType.Pattern The End value of the last appointment in the recurring series. If the series is infinite (no end date), the DateTime.MaxValue is returned.
AppointmentType.ChangedOccurrence The End value of an original occurrence before modification (as if an occurrence is restored from the exception).
AppointmentType.DeletedOccurrence The End value of an original occurrence before modification (as if an occurrence is restored from the exception).
See Also