Skip to main content

BarItemCollection.AddCustomComboBox(Int32, Func<Object>, Func<Object, Task>) Method

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

Namespace: DevExpress.Blazor.Office

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public IBarComboBox AddCustomComboBox(
    int index,
    Func<object> getValue,
    Func<object, Task> valueChanged
)

Parameters

Name Type Description
index Int32

The position where to insert the combo box.

getValue Func<Object>

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

valueChanged Func<Object, Task>

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

Returns

Type Description
IBarComboBox

The inserted combo box editor.

Remarks

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

See Also