Class
ObservableCollection<T>

Definition

Namespace:Telerik.ReportServer.Services.Models.RecurrenceRules

Assembly:Telerik.ReportServer.Services.Models.dll

Type Parameters:

T

Syntax:

cs-api-definition
public class ObservableCollection<T> : Collection<T>, INotifyCollectionChanged, INotifyCollectionChanging, INotifyPropertyChangingEx

Inheritance: objectCollection<T>ObservableCollection<T>

Derived Classes: SchedulerObservableCollection

Implements: INotifyCollectionChangedINotifyCollectionChangingINotifyPropertyChangingEx

Constructors

ObservableCollection()

Declaration

cs-api-definition
public ObservableCollection()

ObservableCollection(IEnumerable<T>)

Declaration

cs-api-definition
public ObservableCollection(IEnumerable<T> list)

Parameters

list

IEnumerable<T>

ObservableCollection(IList<T>)

Declaration

cs-api-definition
public ObservableCollection(IList<T> list)

Parameters

list

IList<T>

ObservableCollection(ObservableCollection<T>)

Declaration

cs-api-definition
public ObservableCollection(ObservableCollection<T> list)

Parameters

list

ObservableCollection<T>

Fields

CountString

Declaration

cs-api-definition
protected const string CountString = "Count"

Field Value

string

ItemArrayString

Declaration

cs-api-definition
protected const string ItemArrayString = "Item[]"

Field Value

string

Properties

IsUpdated

Declaration

cs-api-definition
public bool IsUpdated { get; }

Property Value

bool

Methods

AddRange(IEnumerable<T>)

Declaration

cs-api-definition
public virtual void AddRange(IEnumerable<T> items)

Parameters

items

IEnumerable<T>

BeginItemUpdate()

Declaration

cs-api-definition
public virtual void BeginItemUpdate()

BeginUpdate()

Declaration

cs-api-definition
public virtual void BeginUpdate()

CallCollectionChanged(object, NotifyCollectionChangedEventArgs)

Declaration

cs-api-definition
protected void CallCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)

Parameters

sender

object

e

NotifyCollectionChangedEventArgs

CallCollectionChanging(object, NotifyCollectionChangingEventArgs)

Declaration

cs-api-definition
protected void CallCollectionChanging(object sender, NotifyCollectionChangingEventArgs e)

Parameters

sender

object

e

NotifyCollectionChangingEventArgs

ClearItems()

Declaration

cs-api-definition
protected override void ClearItems()

Overrides Collection<T>.ClearItems()

EndItemUpdate()

Declaration

cs-api-definition
public void EndItemUpdate()

EndItemUpdate(bool)

Declaration

cs-api-definition
public virtual void EndItemUpdate(bool notifyUpdates)

Parameters

notifyUpdates

bool

EndUpdate()

Declaration

cs-api-definition
public void EndUpdate()

EndUpdate(bool)

Declaration

cs-api-definition
public virtual void EndUpdate(bool notifyUpdates)

Parameters

notifyUpdates

bool

InsertItem(int, T)

Declaration

cs-api-definition
protected override void InsertItem(int index, T item)

Parameters

index

int

item

T

Overrides Collection<T>.InsertItem(int, T)

InsertItem(int, T, Action<T>)

Declaration

cs-api-definition
protected virtual void InsertItem(int index, T item, Action<T> approvedAction)

Parameters

index

int

item

T

approvedAction

Action<T>

Move(int, int)

Declaration

cs-api-definition
public void Move(int oldIndex, int newIndex)

Parameters

oldIndex

int

newIndex

int

MoveItem(int, int)

Declaration

cs-api-definition
protected virtual void MoveItem(int oldIndex, int newIndex)

Parameters

oldIndex

int

newIndex

int

NotifyListenersCollectionChanged(NotifyCollectionChangedEventArgs)

Declaration

cs-api-definition
protected virtual void NotifyListenersCollectionChanged(NotifyCollectionChangedEventArgs e)

Parameters

e

NotifyCollectionChangedEventArgs

NotifyListenersCollectionChanging(NotifyCollectionChangingEventArgs)

Declaration

cs-api-definition
protected virtual void NotifyListenersCollectionChanging(NotifyCollectionChangingEventArgs e)

Parameters

e

NotifyCollectionChangingEventArgs

OnCollectionChanged(NotifyCollectionChangedAction, object, int)

Declaration

cs-api-definition
protected void OnCollectionChanged(NotifyCollectionChangedAction action, object item, int index)

Parameters

action

NotifyCollectionChangedAction

item

object

index

int

OnCollectionChanged(NotifyCollectionChangedAction, object, int, int)

Declaration

cs-api-definition
protected void OnCollectionChanged(NotifyCollectionChangedAction action, object item, int index, int oldIndex)

Parameters

action

NotifyCollectionChangedAction

item

object

index

int

oldIndex

int

OnCollectionChanged(NotifyCollectionChangedAction, object, object, int)

Declaration

cs-api-definition
protected void OnCollectionChanged(NotifyCollectionChangedAction action, object oldItem, object newItem, int index)

Parameters

action

NotifyCollectionChangedAction

oldItem

object

newItem

object

index

int

OnCollectionChanged(NotifyCollectionChangedEventArgs)

Declaration

cs-api-definition
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)

Parameters

e

NotifyCollectionChangedEventArgs

OnCollectionChanging(NotifyCollectionChangedAction, object, int)

Declaration

cs-api-definition
protected bool OnCollectionChanging(NotifyCollectionChangedAction action, object item, int index)

Parameters

action

NotifyCollectionChangedAction

item

object

index

int

Returns

bool

OnCollectionChanging(NotifyCollectionChangedAction, object, int, int)

Declaration

cs-api-definition
protected bool OnCollectionChanging(NotifyCollectionChangedAction action, object item, int index, int oldIndex)

Parameters

action

NotifyCollectionChangedAction

item

object

index

int

oldIndex

int

Returns

bool

OnCollectionChanging(NotifyCollectionChangedAction, object, object, int)

Declaration

cs-api-definition
protected bool OnCollectionChanging(NotifyCollectionChangedAction action, object oldItem, object newItem, int index)

Parameters

action

NotifyCollectionChangedAction

oldItem

object

newItem

object

index

int

Returns

bool

OnCollectionChanging(NotifyCollectionChangingEventArgs)

Declaration

cs-api-definition
protected virtual bool OnCollectionChanging(NotifyCollectionChangingEventArgs e)

Parameters

e

NotifyCollectionChangingEventArgs

Returns

bool

OnCollectionReset(IList)

Declaration

cs-api-definition
protected void OnCollectionReset(IList oldItems)

Parameters

oldItems

IList

OnCollectionReseting()

Declaration

cs-api-definition
protected bool OnCollectionReseting()

Returns

bool

OnNotifyPropertyChanged(PropertyChangedEventArgs)

Declaration

cs-api-definition
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)

Parameters

e

PropertyChangedEventArgs

OnNotifyPropertyChanged(string)

Declaration

cs-api-definition
protected virtual void OnNotifyPropertyChanged(string propertyName)

Parameters

propertyName

string

OnNotifyPropertyChanging(PropertyChangingEventArgsEx)

Declaration

cs-api-definition
protected virtual void OnNotifyPropertyChanging(PropertyChangingEventArgsEx e)

Parameters

e

PropertyChangingEventArgsEx

OnNotifyPropertyChanging(string)

Declaration

cs-api-definition
protected virtual void OnNotifyPropertyChanging(string propertyName)

Parameters

propertyName

string

RemoveItem(int)

Declaration

cs-api-definition
protected override void RemoveItem(int index)

Parameters

index

int

Overrides Collection<T>.RemoveItem(int)

RemoveRange(IEnumerable<T>)

Declaration

cs-api-definition
public virtual void RemoveRange(IEnumerable<T> items)

Parameters

items

IEnumerable<T>

SetItem(int, T)

Declaration

cs-api-definition
protected override void SetItem(int index, T item)

Parameters

index

int

item

T

Overrides Collection<T>.SetItem(int, T)

Events

CollectionChanged

Declaration

cs-api-definition
public event NotifyCollectionChangedEventHandler CollectionChanged

Event Value

NotifyCollectionChangedEventHandler

Implements INotifyCollectionChanged.CollectionChanged

CollectionChanging

Declaration

cs-api-definition
public event NotifyCollectionChangingEventHandler CollectionChanging

Event Value

NotifyCollectionChangingEventHandler

Implements INotifyCollectionChanging.CollectionChanging

PropertyChanged

Declaration

cs-api-definition
[Browsable(false)]
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

PropertyChanging

Declaration

cs-api-definition
public event PropertyChangingEventHandlerEx PropertyChanging

Event Value

PropertyChangingEventHandlerEx

Implements INotifyPropertyChangingEx.PropertyChanging

In this article
DefinitionConstructorsObservableCollection()ObservableCollection(IEnumerable<T>)ObservableCollection(IList<T>)ObservableCollection(ObservableCollection<T>)FieldsCountStringItemArrayStringPropertiesIsUpdatedMethodsAddRange(IEnumerable<T>)BeginItemUpdate()BeginUpdate()CallCollectionChanged(object, NotifyCollectionChangedEventArgs)CallCollectionChanging(object, NotifyCollectionChangingEventArgs)ClearItems()EndItemUpdate()EndItemUpdate(bool)EndUpdate()EndUpdate(bool)InsertItem(int, T)InsertItem(int, T, Action<T>)Move(int, int)MoveItem(int, int)NotifyListenersCollectionChanged(NotifyCollectionChangedEventArgs)NotifyListenersCollectionChanging(NotifyCollectionChangingEventArgs)OnCollectionChanged(NotifyCollectionChangedAction, object, int)OnCollectionChanged(NotifyCollectionChangedAction, object, int, int)OnCollectionChanged(NotifyCollectionChangedAction, object, object, int)OnCollectionChanged(NotifyCollectionChangedEventArgs)OnCollectionChanging(NotifyCollectionChangedAction, object, int)OnCollectionChanging(NotifyCollectionChangedAction, object, int, int)OnCollectionChanging(NotifyCollectionChangedAction, object, object, int)OnCollectionChanging(NotifyCollectionChangingEventArgs)OnCollectionReset(IList)OnCollectionReseting()OnNotifyPropertyChanged(PropertyChangedEventArgs)OnNotifyPropertyChanged(string)OnNotifyPropertyChanging(PropertyChangingEventArgsEx)OnNotifyPropertyChanging(string)RemoveItem(int)RemoveRange(IEnumerable<T>)SetItem(int, T)EventsCollectionChangedCollectionChangingPropertyChangedPropertyChanging
Not finding the help you need?
Contact Support