FormCollection.Item[] 屬性

定義

提供對 Form 收藏品中的物件的存取權限。

多載

名稱 Description
Item[Int32]

透過數值索引取得或設定集合中的元素。

Item[String]

透過相關 Form 物件名稱取得或設定集合中的元素。

Item[Int32]

來源:
FormCollection.cs
來源:
FormCollection.cs
來源:
FormCollection.cs
來源:
FormCollection.cs
來源:
FormCollection.cs

透過數值索引取得或設定集合中的元素。

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

屬性值

在指定索引中的形式。

適用於

Item[String]

來源:
FormCollection.cs
來源:
FormCollection.cs
來源:
FormCollection.cs
來源:
FormCollection.cs
來源:
FormCollection.cs

透過相關 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

屬性值

那份表格上有指定的名稱。

適用於