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 是使用 AddAddRange 方法附加專案的已排序集合。 會移除重複的值。

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

取得可用來對控制項集合進行同步 (Synchronize) 存取的物件。

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

適用於