Skip to main content
A newer version of this page is available. .

LayoutControl.AddItem(String, Control, BaseLayoutItem, BaseLayoutItem, InsertType) Method

OBSOLETE

Use the AddItem method instead

Inserts the specified layout item at a position relative to another item within the root group. Allows a new text to be specified for the item.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v19.1.dll

Declaration

[Obsolete("Use the AddItem(BaseLayoutItem newItem, BaseLayoutItem baseItem, InsertType insertType) method instead")]
public LayoutControlItem AddItem(
    string text,
    Control control,
    BaseLayoutItem newItem,
    BaseLayoutItem baseItem,
    InsertType insertType
)

Parameters

Name Type Description
text String

A String value that specifies the new text to be assigned to the added item. The parameter is ignored if the value represents an empty string.

control Control

This parameter is ignored.

newItem BaseLayoutItem

The item to add to the root group.

baseItem BaseLayoutItem

A BaseLayoutItem descendant (owned by the root group) next to which the ‘newItem’ is inserted.

insertType DevExpress.XtraLayout.Utils.InsertType

A DevExpress.XtraLayout.Utils.InsertType enumeration value that specifies the position of the new item relative to the specified item.

Returns

Type Description
LayoutControlItem

The newly created layout item.

See Also