> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# ObservableCollection

> Extension methods for ObservableCollection from System.ObjectModel

## Definition

**Assembly:** System.ObjectModel.dll

**Namespace:** System.Collections.ObjectModel

## Syntax

```csharp theme={"dark"}
System.Collections.ObjectModel.ObservableCollection<T>
```

## Summary

This type is defined in System.ObjectModel.

## Remarks

See [Microsoft documentation](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.observablecollection\{t}) for more information about the rest of the API.

## Methods

### <Icon icon="puzzle-piece" iconType="duotone" color="#E0EC32" size={24} className="mr-2" /> AddRange <Badge color="green">Extension</Badge>

<Note>Extension method from `System.Collections.ObjectModel.EasyAF_CollectionExtensions`</Note>

#### Syntax

```csharp theme={"dark"}
public static void AddRange<T>(System.Collections.ObjectModel.ObservableCollection<T> collection, System.Collections.Generic.IEnumerable<T> items, System.Collections.ObjectModel.CollectionChangeNotificationMode mode = 0)
```

#### Parameters

| Name         | Type                                                              | Description |
| ------------ | ----------------------------------------------------------------- | ----------- |
| `collection` | `System.Collections.ObjectModel.ObservableCollection<T>`          | -           |
| `items`      | `System.Collections.Generic.IEnumerable<T>`                       | -           |
| `mode`       | `System.Collections.ObjectModel.CollectionChangeNotificationMode` | -           |

### <Icon icon="puzzle-piece" iconType="duotone" color="#E0EC32" size={24} className="mr-2" /> InsertRange <Badge color="green">Extension</Badge>

<Note>Extension method from `System.Collections.ObjectModel.EasyAF_CollectionExtensions`</Note>

#### Syntax

```csharp theme={"dark"}
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

| Name         | Type                                                              | Description |
| ------------ | ----------------------------------------------------------------- | ----------- |
| `collection` | `System.Collections.ObjectModel.ObservableCollection<T>`          | -           |
| `index`      | `int`                                                             | -           |
| `items`      | `System.Collections.Generic.IEnumerable<T>`                       | -           |
| `mode`       | `System.Collections.ObjectModel.CollectionChangeNotificationMode` | -           |

### <Icon icon="puzzle-piece" iconType="duotone" color="#E0EC32" size={24} className="mr-2" /> RemoveRange <Badge color="green">Extension</Badge>

<Note>Extension method from `System.Collections.ObjectModel.EasyAF_CollectionExtensions`</Note>

#### Syntax

```csharp theme={"dark"}
public static void RemoveRange<T>(System.Collections.ObjectModel.ObservableCollection<T> collection, int index, int count, System.Collections.ObjectModel.CollectionChangeNotificationMode mode = 0)
```

#### Parameters

| Name         | Type                                                              | Description |
| ------------ | ----------------------------------------------------------------- | ----------- |
| `collection` | `System.Collections.ObjectModel.ObservableCollection<T>`          | -           |
| `index`      | `int`                                                             | -           |
| `count`      | `int`                                                             | -           |
| `mode`       | `System.Collections.ObjectModel.CollectionChangeNotificationMode` | -           |

### <Icon icon="puzzle-piece" iconType="duotone" color="#E0EC32" size={24} className="mr-2" /> ReplaceRange <Badge color="green">Extension</Badge>

<Note>Extension method from `System.Collections.ObjectModel.EasyAF_CollectionExtensions`</Note>

#### Syntax

```csharp theme={"dark"}
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

| Name         | Type                                                              | Description |
| ------------ | ----------------------------------------------------------------- | ----------- |
| `collection` | `System.Collections.ObjectModel.ObservableCollection<T>`          | -           |
| `index`      | `int`                                                             | -           |
| `count`      | `int`                                                             | -           |
| `items`      | `System.Collections.Generic.IEnumerable<T>`                       | -           |
| `mode`       | `System.Collections.ObjectModel.CollectionChangeNotificationMode` | -           |
