TabControl.TabPageCollection.Item[] 屬性

定義

取得或設定集合中的索引標籤頁。

多載

Item[Int32]

取得或設定集合中的 TabPage

Item[String]

從集合中取得具有指定索引鍵的索引標籤頁。

Item[Int32]

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

從集合中取得具有指定索引鍵的索引標籤頁。

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 會對應至 中 之 的 TabPageTabControl.TabPageCollection 索引鍵。

索引鍵比較不區分大小寫。 key如果 參數為 null 或空字串, Item[] 則傳 null 回 。

適用於