ListBox.IntegerCollection 類別

定義

代表 ListBox 中的整數集合。Represents a collection of integers in a 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 is a sorted collection to which items are appended by using the Add and AddRange methods. 已移除重複的值。Duplicate values are removed.

主要ListBox.IntegerCollectionCustomTabOffsets由屬性使用。The ListBox.IntegerCollection is used mainly by the CustomTabOffsets property.

建構函式

ListBox.IntegerCollection(ListBox)

初始化 ListBox.IntegerCollection 類別的新執行個體。Initializes a new instance of the ListBox.IntegerCollection class.

屬性

Count

取得 ListBox 中選取的項目數目。Gets the number of selected items in the ListBox.

Item[Int32]

取得或設定有指定索引的 Item[Int32]Gets or sets the Item[Int32] having the specified index.

方法

Add(Int32)

依排序順序將唯一整數加入至集合。Adds a unique integer to the collection in sorted order.

AddRange(Int32[])

將整數的陣列加入至集合。Adds an array of integers to the collection.

AddRange(ListBox+IntegerCollection)

將現有 ListBox.IntegerCollection 的內容加入至其他集合。Adds the contents of an existing ListBox.IntegerCollection to another collection.

Clear()

ListBox.IntegerCollection 移除所有整數。Removes all integers from the ListBox.IntegerCollection.

Contains(Int32)

判斷指定的整數是否在集合中。Determines whether the specified integer is in the collection.

CopyTo(Array, Int32)

將整個 ListBox.IntegerCollection 複製到陣列中指定位置的現有整數陣列。Copies the entire ListBox.IntegerCollection into an existing array of integers at a specified location within the array.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
IndexOf(Int32)

擷取 ListBox.IntegerCollection 中指定整數的索引。Retrieves the index within the ListBox.IntegerCollection of the specified integer.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
Remove(Int32)

ListBox.IntegerCollection 中移除指定的整數。Removes the specified integer from the ListBox.IntegerCollection.

RemoveAt(Int32)

ListBox.IntegerCollection 中移除在指定索引處的整數。Removes the integer at the specified index from the ListBox.IntegerCollection.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

ICollection.IsSynchronized

取得值,表示是否同步化存取集合 (執行緒安全)。Gets a value indicating whether access to the collection is synchronized (thread safe).

ICollection.SyncRoot

取得可用來對控制項集合進行同步 (Synchronize) 存取的物件。Gets an object that can be used to synchronize access to the collection of controls.

IEnumerable.GetEnumerator()

擷取 ListBox.IntegerCollection 中所有整數的列舉。Retrieves an enumeration of all the integers in the ListBox.IntegerCollection.

IList.Add(Object)

將定位停駐點加入至集合中。Adds a tab stop to the collection.

IList.Clear()

從集合清除所有的定位停駐點。Clears all the tab stops from the collection.

IList.Contains(Object)

判斷指定的定位停駐點是否在集合中。Determines whether the specified tab stop is in the collection.

IList.IndexOf(Object)

傳回集合中指定的定位停駐點的索引。Returns the index of the specified tab stop in the collection.

IList.Insert(Int32, Object)

在指定的索引位置,插入項目至集合之中。Inserts an item into the collection at a specified index.

IList.IsFixedSize

取得值,這個值表示集合的大小是否是固定的。Gets a value indicating whether the collection has a fixed size.

IList.IsReadOnly

取得值,表示集合是否為唯讀。Gets a value indicating whether the collection is read-only.

IList.Item[Int32]

取得或設定在指定索引處的定位停駐點。Gets or sets the tab stop at the specified index.

IList.Remove(Object)

從集合移除第一個項目。Removes the first occurrence of an item from the collection.

IList.RemoveAt(Int32)

移除在指定索引處的項目。Removes the item at a specified index.

擴充方法

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

適用於