ListView.CheckedListViewItemCollection.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
獲得收藏中的一件物品。
多載
| 名稱 | Description |
|---|---|
| Item[String] |
在集合中取得一個具有指定金鑰的項目。 |
| Item[Int32] |
在集合中指定索引取得項目。 |
Item[String]
在集合中取得一個具有指定金鑰的項目。
public:
virtual property System::Windows::Forms::ListViewItem ^ default[System::String ^] { System::Windows::Forms::ListViewItem ^ get(System::String ^ key); };
public virtual System.Windows.Forms.ListViewItem this[string key] { get; }
member this.Item(string) : System.Windows.Forms.ListViewItem
Default Public Overridable ReadOnly Property Item(key As String) As ListViewItem
參數
- key
- String
收藏中要取回的物品鑰匙。
屬性值
A ListViewItem 代表集合中具有指定索引的項目。
例外狀況
主人 ListView 現在是虛擬模式。
備註
Item[]若key參數為null空,則回傳null。
屬性 Name 對應於 中 ListView.CheckedListViewItemCollection某項目的鍵值。
適用於
Item[Int32]
在集合中指定索引取得項目。
public:
property System::Windows::Forms::ListViewItem ^ default[int] { System::Windows::Forms::ListViewItem ^ get(int index); };
public System.Windows.Forms.ListViewItem this[int index] { get; }
member this.Item(int) : System.Windows.Forms.ListViewItem
Default Public ReadOnly Property Item(index As Integer) As ListViewItem
參數
- index
- Int32
集合中要檢索項目的索引。
屬性值
A ListViewItem 代表集合中指定索引處的項目。
例外狀況
參數index小於 0,或大於或等於 的ListView.CheckedListViewItemCollection性質值Count。
它 ListView 處於虛擬模式。
備註
這個索引器讓你能從 中取得特定項目 ListView.CheckedListViewItemCollection。 此集合中儲存的項目是 中代表已檢查項目ListView的 中的項目。ListView.ListViewItemCollectionListView