Upraviť

Zdieľať cez


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.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)

Initializes a new instance of the TabControl.TabPageCollection class.

Properties

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.

Methods

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.

Add(String, String)

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

Add(String)

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

Add(TabPage)

Adds a TabPage to the collection.

AddRange(TabPage[])

Adds a set of tab pages to the collection.

Clear()

Removes all the tab pages from the collection.

Contains(TabPage)

Determines whether a specified tab page is in the collection.

ContainsKey(String)

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)
GetEnumerator()

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

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IndexOf(TabPage)

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

IndexOfKey(String)

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

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.

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)

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.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(TabPage)

Removes a TabPage from the collection.

RemoveAt(Int32)

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

RemoveByKey(String)

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

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32)

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

ICollection.IsSynchronized

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

ICollection.SyncRoot

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

IList.Add(Object)

Adds a TabPage control to the collection.

IList.Contains(Object)

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

IList.IndexOf(Object)

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

IList.Insert(Int32, Object)

This API supports the product infrastructure and is not intended to be used directly from your code.

Inserts a TabPage control into the collection.

IList.IsFixedSize

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

IList.Item[Int32]

Gets or sets a TabPage in the collection.

IList.Remove(Object)

Removes a TabPage from the collection.

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

See also