Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[EditorBrowsable(EditorBrowsableState.Never)]
[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 InsertType

The position of the new item relative to the baseItem.

Returns

Type Description
LayoutControlItem

The newly created layout item.

See Also