ListSortDescriptionCollection 類別
定義
表示 ListSortDescription 物件的集合。Represents a collection of ListSortDescription objects.
public ref class ListSortDescriptionCollection : System::Collections::IList
public class ListSortDescriptionCollection : System.Collections.IList
type ListSortDescriptionCollection = class
interface IList
interface ICollection
interface IEnumerable
Public Class ListSortDescriptionCollection
Implements IList
- 繼承
-
ListSortDescriptionCollection
- 實作
備註
IBindingListView介面會使用類別。 ListSortDescriptionCollectionThe ListSortDescriptionCollection class is used by the IBindingListView interface.
在ListSortDescriptionCollection結構化之後, 是唯讀的。The ListSortDescriptionCollection is read-only once constructed.
建構函式
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. |
屬性
Count |
取得集合中的項目數目。Gets the number of items in the collection. |
Item[Int32] |
取得或設定指定的 ListSortDescription。Gets or sets the specified ListSortDescription. |
方法
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. (繼承來源 Object) |
GetHashCode() |
作為預設雜湊函數。Serves as the default hash function. (繼承來源 Object) |
GetType() |
取得目前執行個體的 Type。Gets the Type of the current instance. (繼承來源 Object) |
IndexOf(Object) |
傳回集合中指定之項目的索引。Returns the index of the specified item in the collection. |
MemberwiseClone() |
建立目前 Object 的淺層複製。Creates a shallow copy of the current Object. (繼承來源 Object) |
ToString() |
傳回代表目前物件的字串。Returns a string that represents the current object. (繼承來源 Object) |
明確介面實作
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() |
取得可以用來逐一查看集合的 IEnumerator。Gets 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] |
取得指定的 ListSortDescription。Gets 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. |
擴充方法
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 轉換成 IQueryable。Converts an IEnumerable to an IQueryable. |