MVCxFormLayoutItemCollection.Add<T>(String) Method

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

Namespace: DevExpress.Web.Mvc

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

Declaration

public T Add<T>(
    string caption
)
    where T : LayoutItemBase, new()
Public Function Add(Of T As {LayoutItemBase, New})(
    caption As String
) As T

Parameters

Name Type Description
caption String

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

Type Parameters

Name Description
T

Returns

Type Description
T

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

See Also