Skip to main content
Tab

TabPageCollection.Remove(TabPage) Method

Removes a tab page object from the tab page collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public void Remove(
    TabPage tabPage
)

Parameters

Name Type Description
tabPage TabPage

A TabPage object specifying the tab page to remove from the tab page collection.

Remarks

Use the Remove method to remove the tab page specified by the tabPage parameter from the current tab page 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 tab pages from the collection, use the Clear() method.

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

See Also