Skip to main content

UserInterfaceObjectCollection<T>.LoadDefaults() Method

Clears the collection and loads standard items created by default.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v22.2.Core.dll

NuGet Package: DevExpress.Scheduler.Core


public virtual void LoadDefaults()


The LoadDefaults method removes all the objects from the collection, and populates it with the default items.

Standard items, created by default, are different for different object types. There are 11 standard appointment label items of different colors and display names; 5 appointment statuses which correspond to AppointmentStatusType enumeration members; 7 different time scales from TimeScale15Minutes to TimeScaleYear etc.

To determine whether a collection contains only default items, use the UserInterfaceObjectCollection<T>.HasDefaultContent method.

See Also