ListView.CheckedListViewItemCollection.Item[] 属性       
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取集合中的项。
重载
| 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.ListViewItemDefault Public Overridable ReadOnly Property Item(key As String) As ListViewItem参数
- key
- String
集合中要检索的项的键。
属性值
一个 ListViewItem,表示集合中具有指定索引的项。
例外
所有者 ListView 处于虚拟模式下。
注解
Item[]如果参数为null空,则null``key返回。
该 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.ListViewItemDefault Public ReadOnly Property Item(index As Integer) As ListViewItem参数
- index
- Int32
要检索的项在集合中的索引。
属性值
ListViewItem,表示位于集合内指定索引处的项。
例外
index 参数小于零或大于等于 Count 的 ListView.CheckedListViewItemCollection 属性的值。
ListView 处于虚拟模式下。
注解
使用此索引器可从中 ListView.CheckedListViewItemCollection获取特定项。 此集合中存储的ListView项ListView.ListViewItemCollection是表示选中项的项。ListView