Skip to main content

MVCxRibbonItemCollection.Add(MVCxRibbonItemType, Action<RibbonItemBase>) Method

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

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public RibbonItemBase Add(
    MVCxRibbonItemType type,
    Action<RibbonItemBase> method
)

Parameters

Name Type Description
type MVCxRibbonItemType

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

method Action<RibbonItemBase>

A delegate method that accepts the created RibbonItemBase as a parameter.

Returns

Type Description
RibbonItemBase

An RibbonItemBase object that is the newly created item.

See Also