通过


ListView.CheckedListViewItemCollection.Item[] 属性

定义

获取集合中的项。

重载

名称 说明
Item[String]

获取集合中具有指定键的项。

Item[Int32]

获取集合中指定索引处的项。

Item[String]

Source:
ListView.CheckedListViewItemCollection.cs
Source:
ListView.CheckedListViewItemCollection.cs
Source:
ListView.CheckedListViewItemCollection.cs
Source:
ListView.CheckedListViewItemCollection.cs
Source:
ListView.CheckedListViewItemCollection.cs

获取集合中具有指定键的项。

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

要检索的集合中项的键。

属性值

一个 ListViewItem 表示集合中具有指定索引的项。

例外

所有者 ListView 处于虚拟模式。

注解

Item[]如果参数为null或为空,则nullkey返回。

Name 属性对应于项的 ListView.CheckedListViewItemCollection键。

适用于

Item[Int32]

Source:
ListView.CheckedListViewItemCollection.cs
Source:
ListView.CheckedListViewItemCollection.cs
Source:
ListView.CheckedListViewItemCollection.cs
Source:
ListView.CheckedListViewItemCollection.cs
Source:
ListView.CheckedListViewItemCollection.cs

获取集合中指定索引处的项。

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

要检索的集合中项的索引。

属性值

一个 ListViewItem 表示位于集合中指定索引处的项。

例外

参数index小于 0 或大于或等于属性ListView.CheckedListViewItemCollection的值Count

处于 ListView 虚拟模式。

注解

使用此索引器可从中 ListView.CheckedListViewItemCollection获取特定项。 存储在此集合中的ListView.ListViewItemCollectionListView项是表示选中项的项。ListView

适用于