AppointmentStorage.CreateAppointment(AppointmentType, DateTime, TimeSpan) Method
Creates an appointment of the specified type with the specified start time and duration.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v24.2.dll
NuGet Package: DevExpress.Wpf.Scheduler
#Declaration
public Appointment CreateAppointment(
AppointmentType type,
DateTime start,
TimeSpan duration
)
#Parameters
Name | Type | Description |
---|---|---|
type | Appointment |
An Appointment |
start | Date |
A Date |
duration | Time |
A Time |
#Returns
Type | Description |
---|---|
Appointment | A newly created Appointment object. |
#Remarks
Important
You are viewing documentation for the legacy WPF Scheduler control. If you’re starting a new project, we strongly recommend that you use a new control declared in the DevExpress.
Use this method to create an appointment. Subsequently use the AppointmentStorage.Add method to add a newly created appointment to the storage.