In The Hand LtdIn The Hand
ObservableCollection<(Of <(<'T>)>)> Class
NamespacesInTheHand.Collections.ObjectModelObservableCollection<(Of <(<'T>)>)>
.NET Components for Mobility
Represents a dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed.
Declaration Syntax
C#Visual Basic
Public Class ObservableCollection(Of T) _
	Inherits Collection(Of T) _
	Implements INotifyCollectionChanged, INotifyPropertyChanged, IBindingList, IList,  _
	ICollection, IEnumerable
Generic Template Parameters
T

[Missing <typeparam name="T"/> documentation for "T:InTheHand.Collections.ObjectModel.ObservableCollection`1"]

Members
All MembersConstructorsMethodsPropertiesEvents



IconMemberDescription
ObservableCollection<(Of <(<'T>)>)>()()()()
Initializes a new instance of the ObservableCollection<(Of <(<'T>)>)> class.

Add(T)
Adds an object to the end of the Collection<(Of <(<'T>)>)>.
(Inherited from Collection<(Of <(<'T>)>)>.)
Clear()()()()
Removes all elements from the Collection<(Of <(<'T>)>)>.
(Inherited from Collection<(Of <(<'T>)>)>.)
ClearItems()()()()
Removes all items from the collection.
(Overrides Collection<(Of <(<'T>)>)>.ClearItems()()()().)
CollectionChanged
Occurs when an item is added, removed, changed, moved, or the entire list is refreshed.

Contains(T)
Determines whether an element is in the Collection<(Of <(<'T>)>)>.
(Inherited from Collection<(Of <(<'T>)>)>.)
CopyTo(array<T>[]()[][], Int32)
Copies the entire Collection<(Of <(<'T>)>)> to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from Collection<(Of <(<'T>)>)>.)
Count
Gets the number of elements actually contained in the Collection<(Of <(<'T>)>)>.
(Inherited from Collection<(Of <(<'T>)>)>.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetEnumerator()()()()
Returns an enumerator that iterates through the Collection<(Of <(<'T>)>)>.
(Inherited from Collection<(Of <(<'T>)>)>.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
IndexOf(T)
Searches for the specified object and returns the zero-based index of the first occurrence within the entire Collection<(Of <(<'T>)>)>.
(Inherited from Collection<(Of <(<'T>)>)>.)
Insert(Int32, T)
Inserts an element into the Collection<(Of <(<'T>)>)> at the specified index.
(Inherited from Collection<(Of <(<'T>)>)>.)
InsertItem(Int32, T)
Inserts an item into the collection at the specified index.
(Overrides Collection<(Of <(<'T>)>)>.InsertItem(Int32, T).)
Item[([( Int32])])
Gets or sets the element at the specified index.
(Inherited from Collection<(Of <(<'T>)>)>.)
Items
Gets a IList<(Of <(<'T>)>)> wrapper around the Collection<(Of <(<'T>)>)>.
(Inherited from Collection<(Of <(<'T>)>)>.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Move(Int32, Int32)
Moves the item at the specified index to a new location in the collection.

MoveItem(Int32, Int32)
Moves the item at the specified index to a new location in the collection.

OnCollectionChanged(NotifyCollectionChangedEventArgs)
Raises the CollectionChanged event with the provided arguments.

OnPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event with the provided arguments.

PropertyChanged
Occurs when a property value changes.

Remove(T)
Removes the first occurrence of a specific object from the Collection<(Of <(<'T>)>)>.
(Inherited from Collection<(Of <(<'T>)>)>.)
RemoveAt(Int32)
Removes the element at the specified index of the Collection<(Of <(<'T>)>)>.
(Inherited from Collection<(Of <(<'T>)>)>.)
RemoveItem(Int32)
Removes the item at the specified index of the collection.
(Overrides Collection<(Of <(<'T>)>)>.RemoveItem(Int32).)
SetItem(Int32, T)
Replaces the element at the specified index.
(Overrides Collection<(Of <(<'T>)>)>.SetItem(Int32, T).)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Remarks
You can enumerate over any collection that implements the IEnumerable interface. However, to set up dynamic bindings so that insertions or deletions in the collection update the UI automatically, the collection must implement the INotifyCollectionChanged interface. This interface exposes the CollectionChanged event, an event that should be raised whenever the underlying collection changes.

Mobile In The Hand provides the ObservableCollection(T) class, which is an implementation of a data collection that implements the INotifyCollectionChanged interface. For .NET Compact Framework it also implements IBindingList to support UI changes in Windows Forms.

Inheritance Hierarchy
Object
Collection<(Of <(<'T>)>)>
 ObservableCollection<(Of <(<'T>)>)>

Assembly: InTheHand (Module: InTheHand) Version: 7.0.0.0