TabControl.TabPageCollection TabControl.TabPageCollection TabControl.TabPageCollection TabControl.TabPageCollection Class

Definition

Contains a collection of TabPage objects.

public: ref class TabControl::TabPageCollection : System::Collections::IList
public class TabControl.TabPageCollection : System.Collections.IList
type TabControl.TabPageCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public Class TabControl.TabPageCollection
Implements IList
Inheritance
TabControl.TabPageCollectionTabControl.TabPageCollectionTabControl.TabPageCollectionTabControl.TabPageCollection
Implements

Remarks

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.

Constructors

TabControl.TabPageCollection(TabControl) TabControl.TabPageCollection(TabControl) TabControl.TabPageCollection(TabControl) TabControl.TabPageCollection(TabControl)

Initializes a new instance of the TabControl.TabPageCollection class.

Properties

Count Count Count Count

Gets the number of tab pages in the collection.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

Gets a value indicating whether the collection is read-only.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets or sets a TabPage in the collection.

Item[String] Item[String] Item[String] Item[String]

Gets a tab page with the specified key from the collection.

Methods

Add(String) Add(String) Add(String) Add(String)

Creates a tab page with the specified text, and adds it to the collection.

Add(String, String) Add(String, String) Add(String, String) Add(String, String)

Creates a tab page with the specified text and key, and adds it to the collection.

Add(String, String, Int32) Add(String, String, Int32) Add(String, String, Int32) 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) Add(String, String, String) Add(String, String, String) Add(String, String, String)

Creates a tab page with the specified key, text, and image, and adds it to the collection.

Add(TabPage) Add(TabPage) Add(TabPage) Add(TabPage)

Adds a TabPage to the collection.

AddRange(TabPage[]) AddRange(TabPage[]) AddRange(TabPage[]) AddRange(TabPage[])

Adds a set of tab pages to the collection.

Clear() Clear() Clear() Clear()

Removes all the tab pages from the collection.

Contains(TabPage) Contains(TabPage) Contains(TabPage) Contains(TabPage)

Determines whether a specified tab page is in the collection.

ContainsKey(String) ContainsKey(String) ContainsKey(String) ContainsKey(String)

Determines whether the collection contains a tab page with the specified key.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumeration of all the tab pages in the collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IndexOf(TabPage) IndexOf(TabPage) IndexOf(TabPage) IndexOf(TabPage)

Returns the index of the specified tab page in the collection.

IndexOfKey(String) IndexOfKey(String) IndexOfKey(String) IndexOfKey(String)

Returns the index of the first occurrence of the TabPage with the specified key.

Insert(Int32, String) Insert(Int32, String) Insert(Int32, String) Insert(Int32, String)

Creates a new tab page with the specified text and inserts it into the collection at the specified index.

Insert(Int32, String, String) Insert(Int32, String, String) Insert(Int32, String, String) 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) Insert(Int32, String, String, Int32) Insert(Int32, String, String, Int32) 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) Insert(Int32, String, String, String) Insert(Int32, String, String, String) 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.

Insert(Int32, TabPage) Insert(Int32, TabPage) Insert(Int32, TabPage) Insert(Int32, TabPage)

Inserts an existing tab page into the collection at the specified index.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(TabPage) Remove(TabPage) Remove(TabPage) Remove(TabPage)

Removes a TabPage from the collection.

RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

Removes the tab page at the specified index from the collection.

RemoveByKey(String) RemoveByKey(String) RemoveByKey(String) RemoveByKey(String)

Removes the tab page with the specified key from the collection.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

Copies the elements of the collection to the specified array, starting at the specified index.

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

Gets a value indicating whether access to the TabControl.TabPageCollection is synchronized (thread safe).

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

Gets an object that can be used to synchronize access to the TabControl.TabPageCollection.

IList.Add(Object) IList.Add(Object) IList.Add(Object) IList.Add(Object)

Adds a TabPage control to the collection.

IList.Contains(Object) IList.Contains(Object) IList.Contains(Object) IList.Contains(Object)

Determines whether the specified TabPage control is in the TabControl.TabPageCollection.

IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object)

Returns the index of the specified TabPage control in the collection.

IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)

Inserts a TabPage control into the collection.

IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize

Gets a value indicating whether the TabControl.TabPageCollection has a fixed size.

IList.Item[Int32] IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]

Gets or sets a TabPage in the collection.

IList.Remove(Object) IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

Removes a TabPage from the collection.

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

See also