Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutGroup.RemoveAt(Int32) Method

Removes the child item at the specified index.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public void RemoveAt(
    int index
)

#Parameters

Name Type Description
index Int32

An integer that specifies the index of the item to remove.

#Remarks

The RemoveAt method removes the child item that has the specified index. The index is an integer value that uniquely identifies an item in the LayoutGroup.Items collection. It can be between 0 and LayoutGroup.Count - 1, inclusive.

This method hides the item by deleting it from the LayoutControl.Items collection. The item is not disposed of.

If the addressed item is a group, all items within this group will be removed from the layout.

To dispose of an item use its Dispose method. If an item represents a LayoutControlItem object, its control is not destroyed.

See Also