TabItemCollection Class

This class represents a collection of TabItems within a TabStrip.

Syntax

Visual Basic  Public  Class TabItemCollection Inherits BaseChildNodeCollection
C# public   class TabItemCollection : BaseChildNodeCollection
Managed C++ public:  __gc class TabItemCollection :  public BaseChildNodeCollection
JScript public   class TabItemCollection extends BaseChildNodeCollection

Inheritance Hierarchy

Object::BaseChildNodeCollection

Members Table

The following table lists the members exposed by the TabItemCollection object.

Property Description
Item Retrieves the item in the collection that matches the int being searched for.
NumTabs Retrieves a value that indicates the number of Tabs within a collection.
Method Description
Add Adds a TabItem to the TabItemCollection.
AddAt Adds a TabItem to the TabItemCollection at the specified index.
Clone Creates a new object that is a copy of the current instance.
Contains Determines whether there is a TabItem in the TabItemCollection.
IndexOf Determines the zero-based index of a TabItem within the TabItemCollection.
OnClear Tracks the number of Tabs after clearing the collection.
OnInsert Tracks the number of Tabs after a new Tab is inserted into the collection.
OnInsertComplete Adjusts the selected object after inserting an item.
OnRemove Tracks the number of Tabs after using the Remove method.
OnRemoveComplete Sets the parent of the object that was removed to null.
OnSet Called when a node's properties are being set.
Remove Removes a TabItem from the TabItemCollection.
TabIndexOf Determines the tab-based index of a Tab within the TabItemCollection.
ToArrayIndex Converts the tab-based index to an index in the TabItemCollection.
ToTabIndex Converts the zero-based index to a tab-based index in the TabItemCollection.

Class Information

Namespace Microsoft.Web.UI.WebControls
Assembly Microsoft.Web.UI.WebControls.dll

See Also

Internet Explorer WebControls, TabStrip, About the TabStrip WebControl