Skip to main content

ToolbarItemPickerItemCollection.Add(String, String) Method

Creates a new item with the specified settings and adds it to the collection.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public ToolbarItemPickerItem Add(
    string value,
    string text
)

Parameters

Name Type Description
value String

A String that represents the validated value. This value is assigned to the ToolbarCustomItem.Value property.

text String

A String value that specifies the created toolbar item’s display text. This value is assigned to the ToolbarItemBase.Text property.

Returns

Type Description
ToolbarItemPickerItem

A ToolbarItemPickerItem object representing the newly created item.

Remarks

Use the Add method to add a new item with the specified settings to the end of the ToolbarItemPickerItemCollection object.

See Also