次の方法で共有


Control.ControlCollection.Item[] プロパティ

定義

コレクション内の Control を示します。

オーバーロード

名前 説明
Item[Int32]

コレクション内の指定したインデックス位置にある Control を示します。

Item[String]

コレクション内の指定したキーを持つ Control を示します。

Item[Int32]

ソース:
Control.ControlCollection.cs
ソース:
Control.ControlCollection.cs
ソース:
Control.ControlCollection.cs
ソース:
Control.ControlCollection.cs
ソース:
Control.ControlCollection.cs

コレクション内の指定したインデックス位置にある Control を示します。

public:
 virtual property System::Windows::Forms::Control ^ default[int] { System::Windows::Forms::Control ^ get(int index); };
public virtual System.Windows.Forms.Control this[int index] { get; }
member this.Item(int) : System.Windows.Forms.Control
Default Public Overridable ReadOnly Property Item(index As Integer) As Control

パラメーター

index
Int32

コントロール コレクションから取得するコントロールのインデックス。

プロパティ値

Controlコントロール コレクション内の指定したインデックス位置にあります。

例外

index値が 0 未満であるか、コレクション内のコントロールの数以上です。

注釈

Control.ControlCollectionからControlを取得するには、特定のインデックス値を持つコレクション オブジェクトを参照します。 Control.ControlCollectionのインデックス値は 0 から始まるインデックスです。

こちらもご覧ください

適用対象

Item[String]

ソース:
Control.ControlCollection.cs
ソース:
Control.ControlCollection.cs
ソース:
Control.ControlCollection.cs
ソース:
Control.ControlCollection.cs
ソース:
Control.ControlCollection.cs

コレクション内の指定したキーを持つ Control を示します。

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

パラメーター

key
String

コントロール コレクションから取得するコントロールの名前。

プロパティ値

Control.ControlCollection内の指定したキーを持つControl

注釈

ControlName プロパティは、Control.ControlCollection内のControlのキーに対応します。

適用対象