A newer version of this page is available. Switch to the current version.

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

Declaration

public ToolbarMenuItem Add(
    string value,
    string text,
    string imageUrl,
    string toolTip
)
Public Function Add(
    value As String,
    text As String,
    imageUrl As String,
    toolTip As String
) As ToolbarMenuItem

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.

imageUrl String

A String value specifying the path to the image displayed by the item. This value is assigned to the ImagePropertiesBase.Url property.

toolTip String

A String value that specifies the created toolbar item's tooltip text. This value is assigned to the ToolbarItemBase.ToolTip property.

Returns

Type Description
ToolbarMenuItem

A ToolbarMenuItem 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 ToolbarMenuItemCollection object.

See Also