Skip to main content
A newer version of this page is available.
All docs
V18.2

MVCxFormLayoutItemCollection.Add<T>(String, String) Method

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

Namespace: DevExpress.Web.Mvc

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

Declaration

public T Add<T>(
    string caption,
    string name
)
    where T : LayoutItemBase, new()

Parameters

Name Type Description
caption String

A String value specifying the item caption. This value is assigned to the LayoutItemBase.Caption property.

name String

A String value specifying the item name. This value is assigned to the LayoutItemBase.Name property.

Type Parameters

Name
T

Returns

Type Description
T

A LayoutItemBase class descendant that is an item to be added.

See Also