ListSortDescriptionCollection Class

Definition

表示 ListSortDescription 物件的集合。Represents a collection of ListSortDescription objects.

public ref class ListSortDescriptionCollection : System::Collections::IList
public class ListSortDescriptionCollection : System.Collections.IList
type ListSortDescriptionCollection = class
    interface ICollection
    interface IEnumerable
    interface IList
type ListSortDescriptionCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public Class ListSortDescriptionCollection
Implements IList
Inheritance
ListSortDescriptionCollection
Implements

Remarks

IBindingListView 介面會使用 ListSortDescriptionCollection 類別。The ListSortDescriptionCollection class is used by the IBindingListView interface.

ListSortDescriptionCollection 在結構化之後是唯讀的。The ListSortDescriptionCollection is read-only once constructed.

Constructors

ListSortDescriptionCollection()

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

ListSortDescriptionCollection(ListSortDescription[])

使用指定的 ListSortDescriptionCollection 物件陣列,初始化 ListSortDescription 類別的新執行個體。Initializes a new instance of the ListSortDescriptionCollection class with the specified array of ListSortDescription objects.

Properties

Count

取得集合中的項目數。Gets the number of items in the collection.

Item[Int32]

取得或設定指定的 ListSortDescriptionGets or sets the specified ListSortDescription.

Methods

Contains(Object)

判斷 ListSortDescriptionCollection 是否含有特定值。Determines if the ListSortDescriptionCollection contains a specific value.

CopyTo(Array, Int32)

從指定之目的陣列索引開始,將集合之內容複製到指定的陣列。Copies the contents of the collection to the specified array, starting at the specified destination array index.

Equals(Object)

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

(Inherited from Object)
GetHashCode()

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

(Inherited from Object)
GetType()

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

(Inherited from Object)
IndexOf(Object)

傳回集合中指定之項目的索引。Returns the index of the specified item in the collection.

MemberwiseClone()

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

(Inherited from Object)
ToString()

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

(Inherited from Object)

Explicit Interface Implementations

ICollection.IsSynchronized

取得值,指出對集合的存取是否為安全執行緒。Gets a value indicating whether access to the collection is thread safe.

ICollection.SyncRoot

取得可以用來同步處理對集合之存取的目前執行個體。Gets the current instance that can be used to synchronize access to the collection.

IEnumerable.GetEnumerator()

取得可以用來逐一查看集合的 IEnumeratorGets a IEnumerator that can be used to iterate through the collection.

IList.Add(Object)

將項目加入至集合。Adds an item to the collection.

IList.Clear()

從集合中移除所有項目。Removes all items from 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]

取得指定的 ListSortDescriptionGets the specified ListSortDescription.

IList.Remove(Object)

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

IList.RemoveAt(Int32)

從指定索引的集合移除項目。Removes an item from the collection at a specified index.

Extension Methods

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.

Applies to