Tab

ColorEditItemCollection.CreateDefaultItems(Boolean) Method

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.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