ListBox.IntegerCollection 类   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示 ListBox 中整数的集合。
public: ref class ListBox::IntegerCollection : System::Collections::IListpublic class ListBox.IntegerCollection : System.Collections.IListtype ListBox.IntegerCollection = class
    interface IList
    interface ICollection
    interface IEnumerablePublic Class ListBox.IntegerCollection
Implements IList- 继承
- 
				ListBox.IntegerCollection
- 实现
注解
ListBox.IntegerCollection是使用和AddRange方法追加Add项的排序集合。 删除重复值。
主要 ListBox.IntegerCollection 由 CustomTabOffsets 属性使用。
构造函数
| ListBox.IntegerCollection(ListBox) | 初始化 ListBox.IntegerCollection 类的新实例。 | 
属性
| Count | 获取 ListBox 中选择的项的数目。 | 
| Item[Int32] | 获取或设置指定索引处的元素。 | 
方法
| Add(Int32) | 按照排序顺序向集合添加一个唯一的整数。 | 
| AddRange(Int32[]) | 向集合添加整数数组。 | 
| AddRange(ListBox+IntegerCollection) | 将现有 ListBox.IntegerCollection 中的内容添加到另一集合。 | 
| Clear() | 从 ListBox.IntegerCollection 中移除所有整数。 | 
| Contains(Int32) | 确定指定的整数是否在集合中。 | 
| CopyTo(Array, Int32) | 将整个 ListBox.IntegerCollection 复制到现有整数数组的指定位置。 | 
| Equals(Object) | 确定指定对象是否等于当前对象。(继承自 Object) | 
| GetHashCode() | 作为默认哈希函数。(继承自 Object) | 
| GetType() | 获取当前实例的 Type。(继承自 Object) | 
| IndexOf(Int32) | 检索指定的整数在 ListBox.IntegerCollection 中的索引。 | 
| MemberwiseClone() | 创建当前 Object 的浅表副本。(继承自 Object) | 
| Remove(Int32) | 从 ListBox.IntegerCollection 中移除指定的整数。 | 
| RemoveAt(Int32) | 从 ListBox.IntegerCollection 中移除指定索引处的整数。 | 
| ToString() | 返回表示当前对象的字符串。(继承自 Object) | 
显式接口实现
| ICollection.IsSynchronized | 获取一个值,该值指示对集合的访问是否为同步的(线程安全)。 | 
| ICollection.SyncRoot | 获取可用于同步控件集合访问的对象。 | 
| IEnumerable.GetEnumerator() | 检索 ListBox.IntegerCollection 中所有整数的枚举。 | 
| IList.Add(Object) | 将制表位添加到集合。 | 
| IList.Clear() | 从集合中清除所有制表位。 | 
| IList.Contains(Object) | 确定指定的制表位是否在集合中。 | 
| IList.IndexOf(Object) | 返回集合中指定的制表位的索引。 | 
| IList.Insert(Int32, Object) | 将某个项插入到集合中的指定索引处。 | 
| IList.IsFixedSize | 获取一个值,该值指示集合是否具有固定大小。 | 
| IList.IsReadOnly | 获取一个值,该值指示集合是否为只读。 | 
| IList.Item[Int32] | 获取或设置指定索引位置的制表位。 | 
| IList.Remove(Object) | 从集合中移除某项的第一个匹配项。 | 
| IList.RemoveAt(Int32) | 移除指定索引处的项。 | 
扩展方法
| Cast<TResult>(IEnumerable) | 将 IEnumerable 的元素强制转换为指定的类型。 | 
| OfType<TResult>(IEnumerable) | 根据指定类型筛选 IEnumerable 的元素。 | 
| AsParallel(IEnumerable) | 启用查询的并行化。 | 
| AsQueryable(IEnumerable) | 将 IEnumerable 转换为 IQueryable。 |