Back to Devexpress

SchedulerItemBase.End Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-scheduleritembase-4c265d0e.md

latest3.6 KB
Original Source

SchedulerItemBase.End Property

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

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public DateTime End { get; set; }
vb
Public Property [End] As Date

Property Value

TypeDescription
DateTime

A DateTime value that is the end of the appointment.

|

Remarks

The End property value is consistent with the SchedulerItemBase.Duration and SchedulerItemBase.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.

Note

If the SchedulerItemBase.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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the End 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.

wpf-scheduler-filter-time-regions/CS/DXSample/MainWindow.xaml#L45

xml
Start="1/1/2019 13:00:00"
End="1/1/2019 14:00:00"
RecurrenceInfo="{dxsch:RecurrenceDaily Start='1/1/2019 13:00:00', ByDay=WorkDays}"

wpf-scheduler-create-recurrent-appointments-in-code/CS/RecurrenceExamples/MainWindow.xaml.cs#L27

csharp
apt.Start = DateTime.Today.AddHours(9);
apt.End = apt.Start.AddMinutes(5);
apt.Subject = subj;

wpf-scheduler-create-recurrent-appointments-in-code/VB/RecurrenceExamples/MainWindow.xaml.vb#L27

vb
apt.Start = Date.Today.AddHours(9)
apt.End = apt.Start.AddMinutes(5)
apt.Subject = subj

See Also

SchedulerItemBase Class

SchedulerItemBase Members

DevExpress.Xpf.Scheduling Namespace