Back to Devexpress

SchedulerItemBase.QueryEnd Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-scheduleritembase-c8c14aee.md

latest3.0 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

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

Property Value

TypeDescription
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 TypeQueryEnd Value
AppointmentType.NormalThe SchedulerItemBase.End value.
AppointmentType.PatternThe End value of the latest Occurrence, ChangedOccurrence or DeletedOccurrence.
AppointmentType.ChangedOccurrenceThe QueryEnd value of the pattern.
AppointmentType.DeletedOccurrenceThe QueryEnd value of the pattern.

See Also

SchedulerItemBase Class

SchedulerItemBase Members

DevExpress.Xpf.Scheduling Namespace