GridItemCollection.Item[] 属性

定义

从集合中获取一个 GridItem

重载

名称 说明
Item[Int32]

获取 GridItem 指定索引处。

Item[String]

获取 GridItem 具有匹配标签的标签。

Item[Int32]

Source:
GridItemCollection.cs
Source:
GridItemCollection.cs
Source:
GridItemCollection.cs
Source:
GridItemCollection.cs
Source:
GridItemCollection.cs

获取 GridItem 指定索引处。

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

参数

index
Int32

要返回的网格项的索引。

属性值

位于 GridItem 指定索引处。

适用于

Item[String]

Source:
GridItemCollection.cs
Source:
GridItemCollection.cs
Source:
GridItemCollection.cs
Source:
GridItemCollection.cs
Source:
GridItemCollection.cs

获取 GridItem 具有匹配标签的标签。

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

参数

label
String

要与网格项标签匹配的字符串值。

属性值

标签与参数匹配的 label 网格项。

适用于