AppointmentDataStorage.Add(Appointment) Method
Appends the specified Appointment object to the collection which can be accessed via the storage’s AppointmentDataStorage.Items property.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.1.dll
NuGet Package: DevExpress.Win.Scheduler
Declaration
Parameters
Name | Type | Description |
---|---|---|
appointment | Appointment | An Appointment object to append to the collection. |
Returns
Type | Description |
---|---|
Int32 | An integer value indicating the position at which the new element was inserted. |
Remarks
This method adds an Appointment object to the end of the appointment collection maintained by the current AppointmentDataStorage object. This collection can be accessed via the storage’s AppointmentDataStorage.Items property.
To prevent excessive updates when changes to the appointment collection are applied, enclose the code that uses the Add method within calls to SchedulerStorage.BeginUpdate and SchedulerStorage.EndUpdate methods.
Tip
To perform the same action at the appointment collection level, use the collection’s AppointmentCollection.Add method.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Add(Appointment) method.
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.