Skip to main content

LayoutControlGroup.AddItem(BaseLayoutItem, BaseLayoutItem, InsertType) Method

Inserts the specified item at a position relative to another item within the current group.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public LayoutControlItem AddItem(
    BaseLayoutItem newItem,
    BaseLayoutItem baseItem,
    InsertType insertType
)

Parameters

Name Type Description
newItem BaseLayoutItem

The item to be moved to a new position.

baseItem BaseLayoutItem

A BaseLayoutItem descendant (owned by the current 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 added layout item.

Remarks

This method overrides the base LayoutGroup.AddItem method to return a LayoutControlItem object. For more information, refer to the corresponding LayoutGroup.AddItem method overload.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AddItem(BaseLayoutItem, BaseLayoutItem, InsertType) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also