GridItemCollection.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從收藏中拿到一筆 GridItem 。
多載
| 名稱 | Description |
|---|---|
| Item[Int32] |
在指定的索引處得到 。GridItem |
| Item[String] |
拿到有配對標籤的。GridItem |
Item[Int32]
在指定的索引處得到 。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]
拿到有配對標籤的。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 的格子項目。