Class ObservableCollection<U>
Observable generic collection.
Inheritance
System.Object
System.Collections.ObjectModel.Collection<U>
ObservableCollection<U>
Implements
System.Collections.Generic.IList<U>
System.Collections.Generic.ICollection<U>
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IReadOnlyList<U>
System.Collections.Generic.IReadOnlyCollection<U>
System.Collections.Generic.IEnumerable<U>
System.Collections.IEnumerable
Inherited Members
System.Collections.ObjectModel.Collection<U>.Add(U)
System.Collections.ObjectModel.Collection<U>.Clear()
System.Collections.ObjectModel.Collection<U>.ClearItems()
System.Collections.ObjectModel.Collection<U>.Contains(U)
System.Collections.ObjectModel.Collection<U>.CopyTo(U[], System.Int32)
System.Collections.ObjectModel.Collection<U>.Count
System.Collections.ObjectModel.Collection<U>.GetEnumerator()
System.Collections.ObjectModel.Collection<U>.IndexOf(U)
System.Collections.ObjectModel.Collection<U>.Insert(System.Int32, U)
System.Collections.ObjectModel.Collection<U>.Item[System.Int32]
System.Collections.ObjectModel.Collection<U>.Items
System.Collections.ObjectModel.Collection<U>.Remove(U)
System.Collections.ObjectModel.Collection<U>.RemoveAt(System.Int32)
System.Collections.ObjectModel.Collection<U>.System.Collections.Generic.ICollection<U>.IsReadOnly
System.Collections.ObjectModel.Collection<U>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.ObjectModel.Collection<U>.System.Collections.ICollection.IsSynchronized
System.Collections.ObjectModel.Collection<U>.System.Collections.ICollection.SyncRoot
System.Collections.ObjectModel.Collection<U>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.ObjectModel.Collection<U>.System.Collections.IList.Add(System.Object)
System.Collections.ObjectModel.Collection<U>.System.Collections.IList.Contains(System.Object)
System.Collections.ObjectModel.Collection<U>.System.Collections.IList.get_Item(System.Int32)
System.Collections.ObjectModel.Collection<U>.System.Collections.IList.IndexOf(System.Object)
System.Collections.ObjectModel.Collection<U>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<U>.System.Collections.IList.IsFixedSize
System.Collections.ObjectModel.Collection<U>.System.Collections.IList.IsReadOnly
System.Collections.ObjectModel.Collection<U>.System.Collections.IList.Item[System.Int32]
System.Collections.ObjectModel.Collection<U>.System.Collections.IList.Remove(System.Object)
System.Collections.ObjectModel.Collection<U>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Syncfusion.Tools.Windows.dll
public class ObservableCollection<U> : ObservableCollectionBase<U>, IList<U>, ICollection<U>, IList, ICollection, IReadOnlyList<U>, IReadOnlyCollection<U>, IEnumerable<U>, IEnumerable where U : INotifyPropertyChanged
Type Parameters
Name |
Description |
U |
Observable Collection
|
Constructors
Declaration
public ObservableCollection()
Methods
Inserts an element into the System.Collections.ObjectModel.Collection at the specified index.
Declaration
protected override void InsertItem(int index, U item)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
The zero-based index at which item should be inserted.
|
U |
item |
The object to insert. The value can be null for reference types.
|
Overrides
Syncfusion.Windows.Forms.Tools.Navigation.ObservableCollectionBase<U>.InsertItem(System.Int32, U)
Exceptions
Type |
Condition |
System.ArgumentOutOfRangeException |
index is less than zero.-or-index is greater than System.Collections.ObjectModel.Collection.Count.
|
Removes the element at the specified index of the System.Collections.ObjectModel.Collection.
Declaration
protected override void RemoveItem(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
The zero-based index of the element to remove.
|
Overrides
Syncfusion.Windows.Forms.Tools.Navigation.ObservableCollectionBase<U>.RemoveItem(System.Int32)
Exceptions
Type |
Condition |
System.ArgumentOutOfRangeException |
index is less than zero.-or-index is equal to or greater than System.Collections.ObjectModel.Collection.Count.
|
Replaces the element at the specified index.
Declaration
protected override void SetItem(int index, U item)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
The zero-based index of the element to replace.
|
U |
item |
The new value for the element at the specified index. The value can be null for reference types.
|
Overrides
Syncfusion.Windows.Forms.Tools.Navigation.ObservableCollectionBase<U>.SetItem(System.Int32, U)
Exceptions
Type |
Condition |
System.ArgumentOutOfRangeException |
index is less than zero.-or-index is greater than System.Collections.ObjectModel.Collection.Count.
|
Events
Occurs when property of item within the collection is changed.
Declaration
public event PropertyChangedEventHandler ItemPropertyChanged
Event Type
Type |
System.ComponentModel.PropertyChangedEventHandler |
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Extension Methods