ListViewGroupCollection.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在集合中獲得或設定 a ListViewGroup 。
多載
| 名稱 | Description |
|---|---|
| Item[String] |
取得或設定 ListViewGroup 為指定 Name 屬性值。 |
| Item[Int32] |
在集合中指定的索引處取得或設定 。ListViewGroup |
Item[String]
取得或設定 ListViewGroup 為指定 Name 屬性值。
public:
property System::Windows::Forms::ListViewGroup ^ default[System::String ^] { System::Windows::Forms::ListViewGroup ^ get(System::String ^ key); void set(System::String ^ key, System::Windows::Forms::ListViewGroup ^ value); };
public System.Windows.Forms.ListViewGroup this[string key] { get; set; }
public System.Windows.Forms.ListViewGroup? this[string key] { get; set; }
member this.Item(string) : System.Windows.Forms.ListViewGroup with get, set
Default Public Property Item(key As String) As ListViewGroup
參數
- key
- String
要取得或設定的群組名稱。
屬性值
該ListViewGroup名稱為指定名稱,或null若不存在。ListViewGroup
適用於
Item[Int32]
在集合中指定的索引處取得或設定 。ListViewGroup
public:
property System::Windows::Forms::ListViewGroup ^ default[int] { System::Windows::Forms::ListViewGroup ^ get(int index); void set(int index, System::Windows::Forms::ListViewGroup ^ value); };
public System.Windows.Forms.ListViewGroup this[int index] { get; set; }
member this.Item(int) : System.Windows.Forms.ListViewGroup with get, set
Default Public Property Item(index As Integer) As ListViewGroup
參數
- index
- Int32
集合中的 ListViewGroup 索引,要取得或設定。
屬性值
在集合中指定的索引中。ListViewGroup
例外狀況
index 小於 0 或大於或等於 Count。
備註
利用此屬性在集合中指定索引處取得該群組。 當你有群組物件的參考且需要索引時,就用這個 IndexOf 方法。