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

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

Declaration

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

Parameters

Name Type Description
method Action<CardViewCommandLayoutItem>

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

Returns

Type Description
CardViewCommandLayoutItem

A CardViewCommandLayoutItem object that is the newly added command item.

See Also