Skip to main content
A newer version of this page is available. .

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.v18.2.dll

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