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

MVCxRibbonItemCollection.Add(MVCxRibbonItemType, String, String) Method

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

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll

Declaration

public RibbonItemBase Add(
    MVCxRibbonItemType type,
    string name,
    string text
)

Parameters

Name Type Description
type MVCxRibbonItemType

One of the MVCxRibbonItemType enumeration values specifying the type of the item.

name String

A String value specifying the name which identifies the newly created item.

text String

A String value specifying the text displayed within the item.

Returns

Type Description
RibbonItemBase

An RibbonItemBase object that is the newly created item.

See Also