Muokkaa

Jaa


ListSortDescriptionCollection Class

Definition

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

The ListSortDescriptionCollection class is used by the IBindingListView interface.

The ListSortDescriptionCollection is read-only once constructed.

Constructors

ListSortDescriptionCollection()

Initializes a new instance of the ListSortDescriptionCollection class.

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]

Gets or sets the specified ListSortDescription.

Methods

Contains(Object)

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()

Gets the Type of the current instance.

(Inherited from Object)
IndexOf(Object)

Returns the index of the specified item in the collection.

MemberwiseClone()

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()

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]

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.

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to