FormCollection.Item[] 屬性

定義

提供對集合中 Form 物件的存取。

多載

Item[Int32]

按照數值索引,取得或設定集合中的項目。

Item[String]

按照相關 Form 物件的名稱,取得或設定集合中的項目。

Item[Int32]

按照數值索引,取得或設定集合中的項目。

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

參數

index
Int32

Form 在集合中的位置。

屬性值

Form

位於指定索引位置的表單。

適用於

Item[String]

按照相關 Form 物件的名稱,取得或設定集合中的項目。

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

參數

name
String

Form 的名稱。

屬性值

Form

具有指定之名稱的表單。

適用於