This documentation is archived and is not being maintained.
TabControl::TabPageCollection Class
Visual Studio 2010
Contains a collection of TabPage objects.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The TabControl::TabPageCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | TabControl::TabPageCollection | Initializes a new instance of the TabControl::TabPageCollection class. |
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of tab pages in the collection. |
![]() | IsReadOnly | Gets a value indicating whether the collection is read-only. |
![]() | Item[Int32] | Gets or sets a TabPage in the collection. |
![]() | Item[String] | Gets a tab page with the specified key from the collection. |
| Name | Description | |
|---|---|---|
![]() | Add(String) | Creates a tab page with the specified text, and adds it to the collection. |
![]() | Add(TabPage) | Adds a TabPage to the collection. |
![]() | Add(String, String) | Creates a tab page with the specified text and key, and adds it to the collection. |
![]() | Add(String, String, Int32) | Creates a tab page with the specified key, text, and image, and adds it to the collection. |
![]() | Add(String, String, String) | Creates a tab page with the specified key, text, and image, and adds it to the collection. |
![]() | AddRange | Adds a set of tab pages to the collection. |
![]() | Clear | Removes all the tab pages from the collection. |
![]() | Contains | Determines whether a specified tab page is in the collection. |
![]() | ContainsKey | Determines whether the collection contains a tab page with the specified key. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Returns an enumeration of all the tab pages in the collection. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IndexOf | Returns the index of the specified tab page in the collection. |
![]() | IndexOfKey | Returns the index of the first occurrence of the TabPage with the specified key. |
![]() | Insert(Int32, String) | Creates a new tab page with the specified text and inserts it into the collection at the specified index. |
![]() | Insert(Int32, TabPage) | Inserts an existing tab page into the collection at the specified index. |
![]() | Insert(Int32, String, String) | Creates a new tab page with the specified key and text, and inserts it into the collection at the specified index. |
![]() | Insert(Int32, String, String, Int32) | Creates a new tab page with the specified key, text, and image, and inserts it into the collection at the specified index. |
![]() | Insert(Int32, String, String, String) | Creates a tab page with the specified key, text, and image, and inserts it into the collection at the specified index. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Remove | Removes a TabPage from the collection. |
![]() | RemoveAt | Removes the tab page at the specified index from the collection. |
![]() | RemoveByKey | Removes the tab page with the specified key from the collection. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
![]() | AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
![]() | Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
![]() | OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection::CopyTo | Infrastructure. Copies the elements of the collection to the specified array, starting at the specified index. |
![]() ![]() | ICollection::IsSynchronized | Infrastructure. Gets a value indicating whether access to the TabControl::TabPageCollection is synchronized (thread safe). |
![]() ![]() | ICollection::SyncRoot | Infrastructure. Gets an object that can be used to synchronize access to the TabControl::TabPageCollection. |
![]() ![]() | IList::Add | Infrastructure. Adds a TabPage control to the collection. |
![]() ![]() | IList::Contains | Infrastructure. Determines whether the specified TabPage control is in the TabControl::TabPageCollection. |
![]() ![]() | IList::IndexOf | Infrastructure. Returns the index of the specified TabPage control in the collection. |
![]() ![]() | IList::Insert | Infrastructure. Inserts a TabPage control into the collection. |
![]() ![]() | IList::IsFixedSize | Infrastructure. Gets a value indicating whether the TabControl::TabPageCollection has a fixed size. |
![]() ![]() | IList::Item | Infrastructure. Gets or sets a TabPage in the collection. |
![]() ![]() | IList::Remove | Infrastructure. Removes a TabPage from the collection. |
The order of tab pages in this collection reflects the order of tabs in the related TabControl control. To change the order of tabs in the control, you must change their positions in the collection by removing them and inserting them at new indexes.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:

