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

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

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.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 that specifies the layout items’ caption text.

name String

A String value that specifies the layout items’ name.

Type Parameters

Name
T

Returns

Type Description
T

A layout item object in the layout items collection with a specific caption and name.

Remarks

Use the Add<T> method to add a new layout item with the specified LayoutItemBase.Caption and LayoutItemBase.Name property values to the GridLayoutItemCollection object.

See Also