Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarItemCollection.AddCustomColorEdit(Int32, Func<Color>, Func<Color, Task>, Func<Task>) Method

Adds a custom color editor to the specified position in the bar item collection.

Namespace: DevExpress.Blazor.Office

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public IBarColorEdit AddCustomColorEdit(
    int index,
    Func<Color> getValue,
    Func<Color, Task> valueChanged,
    Func<Task> click
)

#Parameters

Name Type Description
index Int32

The position where to insert the color editor.

getValue Func<Color>

A delegate method that returns the editor’s color value.

valueChanged Func<Color, Task>

A delegate method that specifies whether a new color is selected in the editor.

click Func<Task>

A delegate method that handles the Click event.

#Returns

Type Description
IBarColorEdit

The inserted color editor.

#Remarks

Refer to the IBarColorEdit interface description for more information and an example.

See Also