GridItemCollection.Item[String] 属性

定义

从集合中获取 GridItemGets a GridItem from the collection.

重载

Item[Int32]

获取位于指定索引处的 GridItemGets the GridItem at the specified index.

Item[String]

获取具有匹配标签的 GridItemGets the GridItem with the matching label.

Item[Int32]

获取位于指定索引处的 GridItemGets the GridItem at the specified index.

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

要返回的网格项的索引。The index of the grid item to return.

属性值

位于指定索引处的 GridItemThe GridItem at the specified index.

Item[String]

获取具有匹配标签的 GridItemGets the GridItem with the matching label.

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

参数

label
String

要匹配网格项标签的字符串值A string value to match to a grid item label

属性值

其标签匹配 label 参数的网格项。The grid item whose label matches the label parameter.

适用于