Reactive2DList.Insert(int, ReactiveList) method¶
Defined in
Type: Reactive2DListReactiveList.Reactive.Collections Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Overloads¶
public void Insert(int index, ReactiveList<T> item)public void Insert(int index, object? value)public void Insert(int index, T item)public void Insert(int outerIndex, IEnumerable<T> items, int innerIndex)
1. Overload¶
public void Insert(int index, ReactiveList<T> item)
View source (opens in a new tab)
Inherited documentation
These docs were inherited from IList<ReactiveList<T>>. The member doesn't override them on this type.
Summary: Inserts an item to the IList (opens in a new tab) at the specified index.
Parameters
| Name | Type | Description |
|---|---|---|
index | int (opens in a new tab) | The zero-based index at which item should be inserted. |
item | ReactiveList | The object to insert into the IList (opens in a new tab). |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException (opens in a new tab) | index is not a valid index in the IList (opens in a new tab). |
| System.NotSupportedException (opens in a new tab) | The IList (opens in a new tab) is read-only. |
2. Overload¶
public void Insert(int index, object? value)
View source (opens in a new tab)
Inherited documentation
These docs were inherited from IList. The member doesn't override them on this type.
Summary: Inserts an item to the IList (opens in a new tab) at the specified index.
Parameters
| Name | Type | Description |
|---|---|---|
index | int (opens in a new tab) | The zero-based index at which value should be inserted. |
value | object? (opens in a new tab) | The object to insert into the IList (opens in a new tab). |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException (opens in a new tab) | index is not a valid index in the IList (opens in a new tab). |
| System.NotSupportedException (opens in a new tab) | The IList (opens in a new tab) is read-only. -or- The IList (opens in a new tab) has a fixed size. |
| System.NullReferenceException (opens in a new tab) | value is null reference in the IList (opens in a new tab). |
3. Overload¶
public void Insert(int index, T item)
View source (opens in a new tab)
Summary: Inserts an item into the collection at the specified index.
Parameters
| Name | Type | Description |
|---|---|---|
index | int (opens in a new tab) | The zero-based index at which the item should be inserted. |
item | T | The item to insert into the collection. Cannot be null. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException (opens in a new tab) | Thrown if item is null. |
4. Overload¶
public void Insert(int outerIndex, IEnumerable<T> items, int innerIndex)
View source (opens in a new tab)
Summary: Inserts the specified collection of items into the inner list at the given position within the outer list.
Parameters
| Name | Type | Description |
|---|---|---|
outerIndex | int (opens in a new tab) | The zero-based index in the outer list of the row to insert into. |
items | IEnumerable | The collection of items to insert. Cannot be null. |
innerIndex | int (opens in a new tab) | The zero-based index in the inner list at which to begin inserting the items. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException (opens in a new tab) | Thrown if items is null. |