FormCollection.Item[] 属性

定义

提供对 Form 集合中对象的访问。

重载

名称 说明
Item[Int32]

按集合中的数值索引获取或设置元素。

Item[String]

按关联 Form 对象的名称获取或设置集合中的元素。

Item[Int32]

Source:
FormCollection.cs
Source:
FormCollection.cs
Source:
FormCollection.cs
Source:
FormCollection.cs
Source:
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]

Source:
FormCollection.cs
Source:
FormCollection.cs
Source:
FormCollection.cs
Source:
FormCollection.cs
Source:
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的名称。

属性值

具有指定名称的窗体。

适用于