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

ColorEditItemCollection.CreateDefaultItems(Boolean) Method

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

public virtual void CreateDefaultItems(
    bool clearExistingCollection
)

Parameters

Name Type Description
clearExistingCollection Boolean

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

Remarks

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