Share via


ListView.CheckedIndexCollection 成员

表示包含列表视图控件中选中项的索引的集合。

下表列出了由 ListView.CheckedIndexCollection 类型公开的成员。

公共构造函数

  名称 说明
Public method ListView.CheckedIndexCollection 初始化 ListView.CheckedIndexCollection 类的新实例。

页首

公共属性

  名称 说明
Public property Count 获取集合中项的数目。
Public property IsReadOnly 获取一个值,该值指示集合是否为只读。
Public property Item 获取集合中指定索引处的索引值。

页首

公共方法

(请参见 受保护的方法 )

  名称 说明
Public method Contains 确定指定索引是否位于集合中。
Public method Equals  已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)
Public method GetEnumerator 返回一个可用于循环访问选定索引集合的枚举数。
Public method GetHashCode  用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。)
Public method GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method IndexOf 从列表视图控件的 ListView.ListViewItemCollection 返回指定索引的 System.Windows.Forms.ListView.CheckedIndexCollection 中的索引。
Public method Static ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method ToString  返回表示当前 ObjectString。 (从 Object 继承。)

页首

受保护的方法

  名称 说明
Protected method Finalize  允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。 (从 Object 继承。)
Protected method MemberwiseClone  创建当前 Object 的浅表副本。 (从 Object 继承。)

页首

显式接口实现

  名称 说明
Explicit interface implementation Method System.Collections.ICollection.CopyTo 将选中项索引的集合复制到数组中。
Explicit interface implementation Method System.Collections.IList.Add 向集合中添加一项。
Explicit interface implementation Method System.Collections.IList.Clear 从集合中移除所有项。
Explicit interface implementation Method System.Collections.IList.Contains 检查是否选中了与 ListViewItem 对应的索引。
Explicit interface implementation Method System.Collections.IList.IndexOf 返回指定对象在 ListView.CheckedIndexCollection 中的索引。
Explicit interface implementation Method System.Collections.IList.Insert 将一项插入集合中的指定索引处。
Explicit interface implementation Method System.Collections.IList.Remove 从集合中移除某项的第一个匹配项。
Explicit interface implementation Method System.Collections.IList.RemoveAt 移除集合中指定索引处的项。
Explicit interface implementation Property System.Collections.ICollection.IsSynchronized 获取一个值,该值指示对集合的访问是否为同步的(线程安全)。
Explicit interface implementation Property System.Collections.ICollection.SyncRoot 获取可用于同步控件集合访问的对象。
Explicit interface implementation Property System.Collections.IList.IsFixedSize 获取一个值,该值指示 ListView.CheckedIndexCollection 是否具有固定大小。
Explicit interface implementation Property System.Collections.IList.Item 获取或设置 ListView.CheckedIndexCollection 中的对象。

页首

请参见

参考

ListView.CheckedIndexCollection 类
System.Windows.Forms 命名空间
ListView.ListViewItemCollection