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