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

取得または設定するタブ ページの 0 から始まるインデックス番号。

プロパティ値

指定したインデックスにある TabPage です。

例外

index は、0 未満の値か、使用可能な最大のインデックスより大きい値です。

こちらもご覧ください

適用対象

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 、 内の の TabPage キーに TabControl.TabPageCollection対応します。

キーの比較では、大文字と小文字は区別されません。 パラメーターが key または空の文字列の場合、 Item[]null を返しますnull

適用対象