Skip to main content
A newer version of this page is available. .

SchedulerControl.AddAppointment(AppointmentItem) Method

Adds the specified appointment to the AppointmentItems collection.

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Scheduling, DevExpress.Wpf.Scheduling

Declaration

public bool AddAppointment(
    AppointmentItem apt
)

Parameters

Name Type Description
apt AppointmentItem

A DevExpress.Xpf.Scheduling.AppointmentItem object to be added to the AppointmentItems collection.

Returns

Type Description
Boolean

true, if the appointment has been added to the AppointmentItems collection; otherwise, false.

Remarks

The method does not add the specified appointment and returns false in either of the following cases:

See Also