ListView.CheckedListViewItemCollection 成员
表示列表视图控件中选中项的集合。
下表列出了由 ListView.CheckedListViewItemCollection 类型公开的成员。
公共构造函数
名称 | 说明 | |
---|---|---|
ListView.CheckedListViewItemCollection | 初始化 ListView.CheckedListViewItemCollection 类的新实例。 |
页首
公共属性
名称 | 说明 | |
---|---|---|
Count | 获取集合中项的数目。 | |
IsReadOnly | 获取一个值,该值指示集合是否为只读。 | |
Item | 已重载。获取集合中的项。 |
页首
公共方法
(请参见 受保护的方法 )
名称 | 说明 | |
---|---|---|
Contains | 确定指定项是否位于集合内。 | |
ContainsKey | 确定具有指定键的列是否包含在集合中。 | |
CopyTo | 将整个集合复制到现有数组中,从该数组内的指定位置开始复制。 | |
Equals | 已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。) | |
GetEnumerator | 返回一个可用于循环访问选定的项集合的枚举数。 | |
GetHashCode | 用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。) | |
GetType | 获取当前实例的 Type。 (从 Object 继承。) | |
IndexOf | 返回指定的项在集合中的索引。 | |
IndexOfKey | 确定具有指定键的项的索引。 | |
ReferenceEquals | 确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。) | |
ToString | 返回表示当前 Object 的 String。 (从 Object 继承。) |
页首
受保护的方法
名称 | 说明 | |
---|---|---|
Finalize | 允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。 (从 Object 继承。) | |
MemberwiseClone | 创建当前 Object 的浅表副本。 (从 Object 继承。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
System.Collections.IList.Add | 向集合中添加一项。 | |
System.Collections.IList.Clear | 从集合中移除所有项。 | |
System.Collections.IList.Contains | 验证该项是否已选中。 | |
System.Collections.IList.IndexOf | 返回指定的项在集合中的索引。 | |
System.Collections.IList.Insert | 将一项插入集合中的指定索引处。 | |
System.Collections.IList.Remove | 从集合中移除某项的第一个匹配项。 | |
System.Collections.IList.RemoveAt | 从集合中移除位于指定索引处的项。 | |
System.Collections.ICollection.IsSynchronized | 获取一个值,该值指示是否同步对 ListView.CheckedListViewItemCollection 的访问(线程安全)。 | |
System.Collections.ICollection.SyncRoot | 获取可用于同步控件集合访问的对象。 | |
System.Collections.IList.IsFixedSize | 获取一个值,该值指示集合是否具有固定大小。 | |
System.Collections.IList.Item | 从集合中获取或设置对象。 |
页首
请参见
参考
ListView.CheckedListViewItemCollection 类
System.Windows.Forms 命名空间