Class ObservableCollectionHelper
Class ObservableCollectionHelper.
Inherited Members
Namespace: VisioForge.Core.Helpers
Assembly: VisioForge.Core.dll
Syntax
public static class ObservableCollectionHelper
Methods
AddRange<T>(ObservableCollection<T>, IEnumerable<T>)
Adds the range.
Declaration
public static void AddRange<T>(this ObservableCollection<T> collection, IEnumerable<T> items)
Parameters
Type | Name | Description |
---|---|---|
ObservableCollection<T> | collection | The collection. |
IEnumerable<T> | items | The items. |
Type Parameters
Name | Description |
---|---|
T |
AddRange<T>(ObservableCollection<T>, T[])
Adds the range.
Declaration
public static void AddRange<T>(this ObservableCollection<T> collection, T[] items)
Parameters
Type | Name | Description |
---|---|---|
ObservableCollection<T> | collection | The collection. |
T[] | items | The items. |
Type Parameters
Name | Description |
---|---|
T |
InsertRange<T>(ObservableCollection<T>, int, IEnumerable<T>)
Inserts the range.
Declaration
public static void InsertRange<T>(this ObservableCollection<T> collection, int index, IEnumerable<T> items)
Parameters
Type | Name | Description |
---|---|---|
ObservableCollection<T> | collection | The collection. |
int | index | The index. |
IEnumerable<T> | items | The items. |
Type Parameters
Name | Description |
---|---|
T |
RemoveRange<T>(ObservableCollection<T>, IEnumerable<T>)
Removes the range.
Declaration
public static void RemoveRange<T>(this ObservableCollection<T> collection, IEnumerable<T> items)
Parameters
Type | Name | Description |
---|---|---|
ObservableCollection<T> | collection | The collection. |
IEnumerable<T> | items | The items. |
Type Parameters
Name | Description |
---|---|
T |
RemoveRange<T>(ObservableCollection<T>, int, int)
Removes the range.
Declaration
public static void RemoveRange<T>(this ObservableCollection<T> collection, int index, int count)
Parameters
Type | Name | Description |
---|---|---|
ObservableCollection<T> | collection | The collection. |
int | index | The index. |
int | count | The count. |
Type Parameters
Name | Description |
---|---|
T |
ToObservableCollection<T>(List<T>)
Converts to ObservableCollection.
Declaration
public static ObservableCollection<T> ToObservableCollection<T>(this List<T> collection)
Parameters
Type | Name | Description |
---|---|---|
List<T> | collection | The collection. |
Returns
Type | Description |
---|---|
ObservableCollection<T> | ObservableCollection<T>. |
Type Parameters
Name | Description |
---|---|
T |
ToObservableCollection<T>(T[])
Converts to ObservableCollection.
Declaration
public static ObservableCollection<T> ToObservableCollection<T>(this T[] collection)
Parameters
Type | Name | Description |
---|---|---|
T[] | collection | The collection. |
Returns
Type | Description |
---|---|
ObservableCollection<T> | ObservableCollection<T>. |
Type Parameters
Name | Description |
---|---|
T |