FormCollection.Item[String] FormCollection.Item[String] FormCollection.Item[String] FormCollection.Item[String] Property

定义

重载

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

按照数字索引获取或设置集合中的元素。Gets or sets an element in the collection by its numeric index.

Item[String] Item[String] Item[String] Item[String]

根据关联的 Form 对象的名称获取或设置集合中的元素。Gets or sets an element in the collection by the name of the associated Form object.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

按照数字索引获取或设置集合中的元素。Gets or sets an element in the collection by its numeric index.

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; }
member this.Item(int) : System.Windows.Forms.Form
Default Public Overridable ReadOnly Property Item(index As Integer) As Form

参数

index
Int32 Int32 Int32 Int32

Form 在集合中的位置。The location of the Form within the collection.

属性值

指定索引处的窗体。The form at the specified index.

Item[String] Item[String] Item[String] Item[String]

根据关联的 Form 对象的名称获取或设置集合中的元素。Gets or sets an element in the collection by the name of the associated Form object.

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; }
member this.Item(string) : System.Windows.Forms.Form
Default Public Overridable ReadOnly Property Item(name As String) As Form

参数

name
String String String String

Form 的名称。The name of the Form.

属性值

具有指定名称的窗体。The form with the specified name.

适用于