TextBoxArray.Item[Int16] プロパティ

定義

インデックスによって TextBoxArray の特定の要素を取得します。 読み取り専用。

public:
 property System::Windows::Forms::TextBox ^ default[short] { System::Windows::Forms::TextBox ^ get(short Index); };
public System.Windows.Forms.TextBox this[short Index] { get; }
member this.Item(int16) : System.Windows.Forms.TextBox
Default Public ReadOnly Property Item(Index As Short) As TextBox

パラメーター

Index
Int16

コントロール配列の要素の位置を指定する Short

プロパティ値

コントロール配列内の指定したTextBoxにあるIndex

注釈

Item プロパティは、コントロール配列の既定のプロパティです。 したがって、次のコード行は同等です。

MsgBox(CStr(TextBoxArray.Item(1).Text))
MsgBox(CStr(TextBoxArray(1).Text))

Note

Microsoft.VisualBasic.Compatibility.VB6名前空間の関数とオブジェクトは、Visual Basic 6.0 から Visual Basic にアップグレードするためのツールで使用するために用意されています。 ほとんどの場合、これらの関数とオブジェクトは、.NET Framework の他の名前空間で見つけることができる機能を複製します。 これらは、Visual Basic 6.0 コード モデルが .NET Framework の実装と大きく異なる場合にのみ必要です。

適用対象