LayoutGroup.Remove(BaseLayoutItem) Method

Removes the specified child item within the current group.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll

Declaration

public virtual void Remove(
    BaseLayoutItem item
)
Public Overridable Sub Remove(
    item As BaseLayoutItem
)

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