Skip to main content

HtmlEditorContextMenuItemCollection.Add(String, String) Method

Adds a new context menu item to the collection and specifies the item’s display text and associated command name.

Namespace: DevExpress.Web.ASPxHtmlEditor

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

NuGet Package: DevExpress.Web

Declaration

public HtmlEditorContextMenuItem Add(
    string text,
    string commandName
)

Parameters

Name Type Description
text String

A String value that specifies the created context menu item’s display text. Initializes the item’s HtmlEditorContextMenuItem.Text property.

commandName String

A String value that identifies the executed command. This value is assigned to the HtmlEditorContextMenuItem.CommandName property.

Returns

Type Description
HtmlEditorContextMenuItem

An HtmlEditorContextMenuItem object that is the newly created item.

Remarks

Use the Add method to add a new menu item with the specified settings to the HtmlEditorContextMenuItemCollection object.

See Also