Skip to main content

ColorEditItemCollection.CreateDefaultItems(Boolean) Method

Creates a collection of default color items within the ColorEditItemCollection collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public virtual void CreateDefaultItems(
    bool clearExistingCollection


Name Type Description
clearExistingCollection Boolean

true, to delete existing items; false, to add the default items to the collection.


Use the CreateDefaultItems method to manually create default colors within the ColorEditItemCollection.

Custom colors can be added to the ColorEditItemCollection collection using the collection’s ColorEditItemCollection.Add or ColorEditItemCollection.AddRange method.

See Also