Skip to main content

TabCollection.Remove(Tab) Method

Removes a tab object from the tab collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


public void Remove(
    Tab tab


Name Type Description
tab Tab

A Tab object specifying the tab to remove from the tab collection.


Use the Remove method to remove the tab specified by the tab parameter from the current tab collection.

This method performs a linear search and so the average execution time is proportional to Count. Elements that follow the removed element move up to occupy the vacated area. The indexes of the moved elements are updated.

If you want to remove all tabs from the collection, use the Clear() method.

You can use the TabCollection.Add method to add a tab object to the tab collection. Use the TabCollection.Insert method to add a tab at a specific position within the collection.

See Also