Search
ObservableCollection Members
Constructors Methods Events
 


Represents a collection of arbitrary objects.

The following tables list the members exposed by the ObservableCollection type.

 Public Constructors

  Name Description

ObservableCollection

Initializes a new instance of the ObservableCollection class.

 Public Methods

  Name Description

add

Adds an item to the collection.

addRange

Adds a range of elements to the end of the collection. (Inherited from IEnumerable.)

clear

Clears the collection.

clone

Creates a copy of the collection. (Inherited from IEnumerable.)

contains

Checks if the given element is present in the collection. (Inherited from IEnumerable.)

copyTo

Copies a range of elements from this collection to a destination collection. (Inherited from IEnumerable.)

count

Gets the number of elements. (Inherited from IEnumerable.)

first

Returns the first element in the collection. (Inherited from IEnumerable.)

forEach

Executes a provided function once for each element. (Inherited from IEnumerable.)

indexOfItem

Gets the index of a given object in a collection. (Inherited from IEnumerable.)

insert

Adds an item to the collection at the specified index.

item

Gets the element at the given index. (Inherited from IEnumerable.)

items

Gets the collection as an array. (Inherited from IEnumerable.)

last

Returns the last element in the collection. (Inherited from IEnumerable.)

max

Invokes a transform function on each item and returns the maximum value in a sequence of numbers. (Inherited from IEnumerable.)

min

Invokes a transform function on each item and returns theminimum value in a sequence of numbers. (Inherited from IEnumerable.)

remove

Deletes an item from the collection.

removeAt

Deletes the item at the specified index.

removeRange

Deletes a range of items from the collection.

reverse

Gets the collection as an array in reverse order. (Inherited from IEnumerable.)

select

Projects each element of a sequence into a new form. (Inherited from IEnumerable.)

sort

Sorts the underlying array. (Inherited from IEnumerable.)

sum

Computes the sum of the sequence of number values that are obtained by invoking a transform function on each element. (Inherited from IEnumerable.)

toArray

Returns a new Object array, containing the contents of the collection. (Inherited from IEnumerable.)

where

Filters a sequence of values based on a predicate. (Inherited from IEnumerable.)

 Public Events

  Name Description

collectionChanged

Occurs when an item is added, removed, changed, moved, or the entire list is refreshed.

collectionChanging

Occurs just before an item is added, removed, changed, moved, or the entire list is refreshed.

 See Also