Skip to main content

ToolbarCustomCssListEditItemCollection.Add(String, String, 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 ToolbarCustomCssListEditItem Add(
    string text,
    string tagName,
    string cssClass,
    string previewClass
)

Parameters

Name Type Description
text String

A String value that specifies the item’s text. Initializes the ListEditItem.Text property.

tagName String

A String value that specifies the item’s tag name. Initializes the ToolbarCustomCssListEditItem.TagName property.

cssClass String

A String value that specifies the item’s CSS class name. Initializes the ToolbarCustomCssListEditItem.CssClass property.

previewClass String

A String value that specifies the item’s CSS class name defining its preview appearance. Initializes the CssClass property.

Returns

Type Description
ToolbarCustomCssListEditItem

A ToolbarCustomCssListEditItem 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 ToolbarCustomCssListEditItemCollection object.

See Also