Back to Devexpress

SchedulerItemBase.QueryStart Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-scheduleritembase-455ecf00.md

latest3.0 KB
Original Source

SchedulerItemBase.QueryStart Property

Gets the normalized appointment start 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 QueryStart { get; }
vb
Public ReadOnly Property QueryStart As Date

Property Value

TypeDescription
DateTime

A DateTime value that is the start of the appointment.

|

Remarks

The QueryStart and SchedulerItemBase.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 QueryStart property return values are dependent on the appointment type, as shown in the following table.

Appointment TypeQueryStart Value
AppointmentType.NormalThe SchedulerItemBase.Start value.
AppointmentType.PatternThe Start value of the earliest Occurrence, ChangedOccurrence or DeletedOccurrence.
AppointmentType.ChangedOccurrenceThe QueryStart value of the pattern.
AppointmentType.DeletedOccurrenceThe QueryStart value of the pattern.

See Also

SchedulerItemBase Class

SchedulerItemBase Members

DevExpress.Xpf.Scheduling Namespace