Class NotifyCollection<T>
Inheritance
Inherited Members
Namespace: Telerik.Collections.Generic
Assembly: Telerik.WinControls.dll
Syntax
public class NotifyCollection<T> : Collection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Type Parameters
T
|
Constructors
NotifyCollection()
Declaration
public NotifyCollection()
NotifyCollection(IList<T>)
Declaration
public NotifyCollection(IList<T> list)
Parameters
System.Collections.Generic.IList<T>
list
|
Fields
Empty
Properties
Suspended
Declaration
protected bool Suspended { get; }
Property Value
System.Boolean
|
Version
Declaration
protected int Version { get; }
Property Value
System.Int32
|
Methods
AddRange(T[])
Adds the range.
Declaration
public void AddRange(params T[] items)
Parameters
T[]
items
The items. |
AddRange(IEnumerable<T>)
Adds the range.
Declaration
public void AddRange(IEnumerable<T> items)
Parameters
System.Collections.Generic.IEnumerable<T>
items
The items. |
BeginUpdate()
Begins the update.
Declaration
public void BeginUpdate()
ClearItems()
Declaration
protected override void ClearItems()
Overrides
CreateEventArguments(NotifyCollectionChangedAction)
Declaration
protected virtual NotifyCollectionChangedEventArgs CreateEventArguments(NotifyCollectionChangedAction action)
Parameters
NotifyCollectionChangedAction
action
|
Returns
NotifyCollectionChangedEventArgs
|
CreateEventArguments(NotifyCollectionChangedAction, Object, Int32)
Declaration
protected virtual NotifyCollectionChangedEventArgs CreateEventArguments(NotifyCollectionChangedAction action, object item, int index)
Parameters
NotifyCollectionChangedAction
action
|
System.Object
item
|
System.Int32
index
|
Returns
NotifyCollectionChangedEventArgs
|
CreateEventArguments(NotifyCollectionChangedAction, Object, Object, Int32)
Declaration
protected virtual NotifyCollectionChangedEventArgs CreateEventArguments(NotifyCollectionChangedAction action, object oldItem, object item, int index)
Parameters
NotifyCollectionChangedAction
action
|
System.Object
oldItem
|
System.Object
item
|
System.Int32
index
|
Returns
NotifyCollectionChangedEventArgs
|
DeferRefresh()
Defers the refresh.
Declaration
public virtual IDisposable DeferRefresh()
Returns
System.IDisposable
|
EndUpdate()
Ends the update.
Declaration
public void EndUpdate()
EndUpdate(Boolean)
Declaration
public virtual void EndUpdate(bool notify)
Parameters
System.Boolean
notify
|
InsertItem(Int32, T)
Declaration
protected override void InsertItem(int index, T item)
Parameters
System.Int32
index
|
T
item
|
Overrides
Move(Int32, Int32)
Moves the specified old index.
Declaration
public void Move(int oldIndex, int newIndex)
Parameters
System.Int32
oldIndex
The old index. |
System.Int32
newIndex
The new index. |
MoveItem(Int32, Int32)
Declaration
protected virtual void MoveItem(int oldIndex, int newIndex)
Parameters
System.Int32
oldIndex
|
System.Int32
newIndex
|
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Declaration
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
Parameters
NotifyCollectionChangedEventArgs
args
|
OnPropertyChanged(PropertyChangedEventArgs)
Declaration
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs
e
|
OnPropertyChanged(String)
Declaration
protected void OnPropertyChanged(string propertyName)
Parameters
System.String
propertyName
|
RemoveItem(Int32)
Declaration
protected override void RemoveItem(int index)
Parameters
System.Int32
index
|
Overrides
SetItem(Int32, T)
Declaration
protected override void SetItem(int index, T item)
Parameters
System.Int32
index
|
T
item
|
Overrides
Events
CollectionChanged
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
NotifyCollectionChangedEventHandler
|
Implements
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler
|