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.Remove(BaseLayoutItem) Method

Removes the specified child item within the current group.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public virtual void Remove(
    BaseLayoutItem item
)

#Parameters

Name Type Description
item BaseLayoutItem

The BaseLayoutItem object that should be removed.

#Remarks

This method allows child items to be removed from the current group. If an item is not a child it cannot be removed via this method.

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

If the specified item is a group all its child items 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