GridItemCollection.Item[] 属性

定义

从集合中获取 GridItem

重载

Item[Int32]

获取位于指定索引处的 GridItem

Item[String]

获取具有匹配标签的 GridItem

Item[Int32]

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

获取具有匹配标签的 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 参数的网格项。

适用于