BaseCollection<T>
An observable collection which splits the CollectionChanged event into separate events.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Type Parameters:
T
The type on which the collection is based.
Syntax:
public class BaseCollection<T> : ObservableCollection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Inheritance: objectCollection<T>ObservableCollection<T>BaseCollection<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the BaseCollection<T> class.
public BaseCollection()
Initializes a new instance of the BaseCollection<T> class.
public BaseCollection(bool raiseEventsByDefault)
The raise events by default.
Initializes a new instance of the BaseCollection<T> class. Initializes a new instance of the BaseCollection<T> class.
public BaseCollection(IEnumerable<T> collection)
The collection.
Methods
Adds an item to the collection.
public void Add(T item)
The item to be added.
Clears this collection.
public void Clear()
Inserts an item to this collection.
public void Insert(int index, T item, bool raise)
The index at which the item should be inserted.
itemTThe item to insert.
raiseboolWhether to raise the ItemInserted event.
Inserts an item to this collection.
public void Insert(int index, T item)
The index at which the item should be inserted.
itemTThe item to insert.
Removes an item from this collection.
public void Remove(T item, bool raise)
The item to remove.
raiseboolWhether to raise the ItemRemoved event.
Removes an item from this collection.
public void Remove(T item)
The item to remove.
Events
Occurs when the collection is cleared.
public event EventHandler Cleared
Occurs when an item is added.
public event EventHandler<GenericEventArgs<T>> ItemAdded
Occurs when an item is inserted.
public event EventHandler<GenericEventArgs<T>> ItemInserted
Occurs when an item is removed.
public event EventHandler<GenericEventArgs<T>> ItemRemoved