Back to Devexpress

SchedulerControl.CreateNewAllDayEvent() Method

windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-6f042a00.md

latest3.5 KB
Original Source

SchedulerControl.CreateNewAllDayEvent() Method

Invokes the dialog for editing a newly created all-day appointment.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public void CreateNewAllDayEvent()
vb
Public Sub CreateNewAllDayEvent

Remarks

The Edit Appointment dialog is displayed with the following appointment settings:

PropertyValue
Appointment.AllDaytrue
Appointment.StartThe start of the time interval currently selected in the active view of the Scheduler. This time interval can be obtained using the SchedulerViewBase.SelectedInterval property of the SchedulerControl.ActiveView.
Appointment.EndThe end of the time interval currently selected in the active view of the Scheduler. This time interval can be obtained using the SchedulerViewBase.SelectedInterval property of the SchedulerControl.ActiveView.
Appointment.ResourceIdThe identifier of the currently selected resource (a resource returned by the SchedulerViewBase.SelectedResource property of the SchedulerControl.ActiveView).
StatusKeyAppointmentStatusType.Free

Tip

To create a new appointment in code, use the SchedulerStorageBase.CreateAppointment method.

Note

Use the SchedulerOptionsCustomization.AllowAppointmentCreate option to restrict appointment creation. A new all-day appointment can be created if this option is set to UsedAppointmentType.All or to UsedAppointmentType.NonRecurring.

See Also

Appointments

CreateAppointment(Boolean, Boolean)

SchedulerControl Class

SchedulerControl Members

DevExpress.XtraScheduler Namespace