Back to Devexpress

SchedulerControl.AddAppointment(AppointmentItem) Method

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-dot-addappointment-x28-devexpress-dot-xpf-dot-scheduling-dot-appointmentitem-x29.md

latest2.1 KB
Original Source

SchedulerControl.AddAppointment(AppointmentItem) Method

Adds the specified appointment to the AppointmentItems collection.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public bool AddAppointment(
    AppointmentItem apt
)
vb
Public Function AddAppointment(
    apt As AppointmentItem
) As Boolean

Parameters

NameTypeDescription
aptAppointmentItem

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

|

Returns

TypeDescription
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

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace