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

定義

包含 TabPage 物件的集合。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
繼承
TabControl.TabPageCollectionTabControl.TabPageCollectionTabControl.TabPageCollectionTabControl.TabPageCollection
實作

備註

此集合中的索引標籤頁的順序會反映在相關的索引標籤的順序TabControl控制項。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.

建構函式

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

初始化 TabControl.TabPageCollection 類別的新執行個體。Initializes a new instance of the TabControl.TabPageCollection class.

屬性

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]

取得或設定集合中的 TabPageGets 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.

方法

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)

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

傳回集合中所有索引標籤頁的列舉型別 (Enumeration)。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()

取得目前執行個體的 TypeGets 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)

傳回第一個具有指定索引鍵的 TabPage 之索引。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()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

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

從集合移除 TabPageRemoves 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)

明確介面實作

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

取得值,這個值表示對 TabControl.TabPageCollection 的存取是否同步 (安全執行緒)。Gets a value indicating whether access to the TabControl.TabPageCollection is synchronized (thread safe).

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

取得可用以同步存取 TabControl.TabPageCollection 的物件。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)

TabPage 控制項加入集合中。Adds a TabPage control to the collection.

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

判斷指定的 TabPage 控制項是否在 TabControl.TabPageCollection 中。Determines whether the specified TabPage control is in the TabControl.TabPageCollection.

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

傳回集合中指定 TabPage 控制項的索引。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)

TabPage 控制項插入集合中。Inserts a TabPage control into the collection.

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

取得值,指出 TabControl.TabPageCollection 是否有固定的大小。Gets a value indicating whether the TabControl.TabPageCollection has a fixed size.

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

取得或設定集合中的 TabPageGets or sets a TabPage in the collection.

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

從集合移除 TabPageRemoves a TabPage from the collection.

Extension Methods

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

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

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

根據指定的型別來篩選 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)

將轉換IEnumerableIQueryableConverts an IEnumerable to an IQueryable.

適用於

另請參閱