GridItemCollection.Item[] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从集合中获取一个 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 网格项。