Skip to main content

Definition

Assembly: System.ObjectModel.dll Namespace: System.Collections.ObjectModel

Syntax

System.Collections.ObjectModel.ObservableCollection<T>

Summary

This type is defined in System.ObjectModel.

Remarks

See Microsoft documentation for more information about the rest of the API.

Methods

AddRange Extension

Extension method from System.Collections.ObjectModel.EasyAF_CollectionExtensions

Syntax

public static void AddRange<T>(System.Collections.ObjectModel.ObservableCollection<T> collection, System.Collections.Generic.IEnumerable<T> items, System.Collections.ObjectModel.CollectionChangeNotificationMode mode = 0)

Parameters

NameTypeDescription
collectionSystem.Collections.ObjectModel.ObservableCollection<T>-
itemsSystem.Collections.Generic.IEnumerable<T>-
modeSystem.Collections.ObjectModel.CollectionChangeNotificationMode-

InsertRange Extension

Extension method from System.Collections.ObjectModel.EasyAF_CollectionExtensions

Syntax

public static void InsertRange<T>(System.Collections.ObjectModel.ObservableCollection<T> collection, int index, System.Collections.Generic.IEnumerable<T> items, System.Collections.ObjectModel.CollectionChangeNotificationMode mode = 0)

Parameters

NameTypeDescription
collectionSystem.Collections.ObjectModel.ObservableCollection<T>-
indexint-
itemsSystem.Collections.Generic.IEnumerable<T>-
modeSystem.Collections.ObjectModel.CollectionChangeNotificationMode-

RemoveRange Extension

Extension method from System.Collections.ObjectModel.EasyAF_CollectionExtensions

Syntax

public static void RemoveRange<T>(System.Collections.ObjectModel.ObservableCollection<T> collection, int index, int count, System.Collections.ObjectModel.CollectionChangeNotificationMode mode = 0)

Parameters

NameTypeDescription
collectionSystem.Collections.ObjectModel.ObservableCollection<T>-
indexint-
countint-
modeSystem.Collections.ObjectModel.CollectionChangeNotificationMode-

ReplaceRange Extension

Extension method from System.Collections.ObjectModel.EasyAF_CollectionExtensions

Syntax

public static void ReplaceRange<T>(System.Collections.ObjectModel.ObservableCollection<T> collection, int index, int count, System.Collections.Generic.IEnumerable<T> items, System.Collections.ObjectModel.CollectionChangeNotificationMode mode = 0)

Parameters

NameTypeDescription
collectionSystem.Collections.ObjectModel.ObservableCollection<T>-
indexint-
countint-
itemsSystem.Collections.Generic.IEnumerable<T>-
modeSystem.Collections.ObjectModel.CollectionChangeNotificationMode-