Back to Devexpress

MVCxCardViewLayoutItemCollection.AddCommandItem(Action<CardViewCommandLayoutItem>) Method

aspnetmvc-devexpress-dot-web-dot-mvc-dot-mvcxcardviewlayoutitemcollection-dot-addcommanditem-x28-system-dot-action-devexpress-dot-web-dot-cardviewcommandlayoutitem-x29.md

latest2.0 KB
Original Source

MVCxCardViewLayoutItemCollection.AddCommandItem(Action<CardViewCommandLayoutItem>) Method

Adds a new command item to the MVCxCardViewLayoutItemCollection collection and allows you to customize this item in a delegate method implementation.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public CardViewCommandLayoutItem AddCommandItem(
    Action<CardViewCommandLayoutItem> method
)
vb
Public Function AddCommandItem(
    method As Action(Of CardViewCommandLayoutItem)
) As CardViewCommandLayoutItem

Parameters

NameTypeDescription
methodAction<CardViewCommandLayoutItem>

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

|

Returns

TypeDescription
CardViewCommandLayoutItem

A CardViewCommandLayoutItem object that is the newly added command item.

|

See Also

MVCxCardViewLayoutItemCollection Class

MVCxCardViewLayoutItemCollection Members

DevExpress.Web.Mvc Namespace