共用方式為


TabControl.TabPageCollection.Item[] 屬性

定義

在收藏中取得或設定分頁頁。

多載

名稱 Description
Item[Int32]

在集合中獲得或設定 a TabPage

Item[String]

會從集合中取得一個帶有指定鍵的分頁頁。

Item[Int32]

來源:
TabControl.TabPageCollection.cs
來源:
TabControl.TabPageCollection.cs
來源:
TabControl.TabPageCollection.cs
來源:
TabControl.TabPageCollection.cs
來源:
TabControl.TabPageCollection.cs

在集合中獲得或設定 a TabPage

public:
 virtual property System::Windows::Forms::TabPage ^ default[int] { System::Windows::Forms::TabPage ^ get(int index); void set(int index, System::Windows::Forms::TabPage ^ value); };
public virtual System.Windows.Forms.TabPage this[int index] { get; set; }
member this.Item(int) : System.Windows.Forms.TabPage with get, set
Default Public Overridable Property Item(index As Integer) As TabPage

參數

index
Int32

分頁頁的零基索引,要取得或設定。

屬性值

在指定的索引上。TabPage

例外狀況

index 小於零或大於最高可用指數。

另請參閱

適用於

Item[String]

來源:
TabControl.TabPageCollection.cs
來源:
TabControl.TabPageCollection.cs
來源:
TabControl.TabPageCollection.cs
來源:
TabControl.TabPageCollection.cs
來源:
TabControl.TabPageCollection.cs

會從集合中取得一個帶有指定鍵的分頁頁。

public:
 virtual property System::Windows::Forms::TabPage ^ default[System::String ^] { System::Windows::Forms::TabPage ^ get(System::String ^ key); };
public virtual System.Windows.Forms.TabPage this[string key] { get; }
public virtual System.Windows.Forms.TabPage? this[string? key] { get; }
member this.Item(string) : System.Windows.Forms.TabPage
Default Public Overridable ReadOnly Property Item(key As String) As TabPage

參數

key
String

要取回的分頁頁名稱。

屬性值

TabPage

備註

Name性質對應於 中 a 的TabPageTabControl.TabPageCollection鍵。

關鍵比較並不區分大小寫。 若 key 參數為 null 或 為空字串,則 Item[] 回傳 null

適用於