Click or drag to resize

ObservableListT Methods

The ObservableListT generic type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds an item to the ICollectionT. Fires an ItemChanged "add" event.
Public methodClear
Removes all items from the ICollectionT. Fires ItemChanged "remove" events for every item in the list.
Public methodContains
Determines whether the ICollectionT contains a specific value.
Public methodCopyTo
Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Determines the index of a specific item in the IListT.
Public methodInsert
Inserts an item to the IListT at the specified index. Fires the ItemChanged event with an "add".
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnItemChanged
Raises the [E:ItemChanged] event.
Public methodRemove
Removes the first occurrence of a specific object from the ICollectionT. Fires the ItemChanged event with a "remove".
Public methodRemoveAll
Removes all the elements in the list for which pred returns true. Note that each element will be visited twice.
list.RemoveAll(shape => shape is PdfPath); // remove all paths from the list
Public methodRemoveAt
Removes the IListT item at the specified index. Fires the ItemChanged event with a "remove".
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also