语言

ListBox.IntegerCollection 类

定义

表示一个 ListBox整数集合。

public: ref class ListBox::IntegerCollection : System::Collections::IList
public class ListBox.IntegerCollection : System.Collections.IList
type ListBox.IntegerCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public Class ListBox.IntegerCollection
Implements IList
继承
ListBox.IntegerCollection
实现

注解

ListBox.IntegerCollection 是一个已排序的集合,使用 Add 和 AddRange 方法将项追加到其中。 删除重复值。

主要 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)

删除指定索引处的项。

扩展方法

名称 说明
AsParallel(IEnumerable)

启用查询的并行化。

AsQueryable(IEnumerable)

将 IEnumerable 转换为 IQueryable。

Cast<TResult>(IEnumerable)

将 IEnumerable 的元素强制转换为指定类型。

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。

适用于