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

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.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Scheduling, DevExpress.Wpf.Scheduling

Declaration

public DateTime QueryEnd { get; }

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 for SchedulerControl.VisibleIntervalsChanged, DataSource.FetchAppointments, and DataSource.FetchTimeRegions event handlers. The use of the SchedulerItemBase.Start and SchedulerItemBase.End properties is not recommended in this scenario, because their values do not take recurrences into consideration.

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 latest Occurrence, ChangedOccurrence or DeletedOccurrence.
AppointmentType.ChangedOccurrence The QueryEnd value of the pattern.
AppointmentType.DeletedOccurrence The QueryEnd value of the pattern.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the QueryEnd 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