Click or drag to resize

ObservableCollectionT Methods

The ObservableCollectionT generic type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds an object to the collection.
Public methodAddRange
Adds an object list to the end of the collection.
Public methodClear
Removes all object from the collection.
Public methodContains
Determines whether an object is in the collection.
Public methodCopyTo
Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodIndexOf
Searches for the specified object and returns the zero-based index of the first occurrence within the entire collection.
Public methodInsert
Inserts an object into the collection at the specified index.
Public methodRemove(IEnumerableT)
Removes the first occurrence of a specific object from the collection
Public methodRemove(T)
Removes the first occurrence of a specific object from the collection
Public methodRemoveAt
Removes the object at the specified index of the collection.
Public methodReverse
Reverses the order of the elements in the entire list.
Public methodSort
Sorts the elements in the entire System.Collections.Generic.List<T> using the default comparer.
Public methodSort(ComparisonT)
Sorts the elements in the entire System.Collections.Generic.List<T> using the specified System.Comparison<T>.
Public methodSort(IComparerT)
Sorts the elements in a range of elements in System.Collections.Generic.List<T> using the specified comparer.
Public methodSort(Int32, Int32, IComparerT)
Sorts the elements in a range of elements in System.Collections.Generic.List<T> using the specified comparer.
Top
See Also