Skip to main content
Tab

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

Returns a layout item object with the specified caption and name.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.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 LayoutItemCollection object.

See Also