Skip to content

)} ,System.Int32)}

Reactive2DList.Insert(int, ReactiveList) method

Defined in

Type: Reactive2DList Namespace: ReactiveList.Reactive.Collections Assembly: ReactiveList.Reactive.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Overloads

  1. public void Insert(int index, ReactiveList<T> item)

  2. public void Insert(int index, object? value)

  3. public void Insert(int index, T item)

  4. 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

NameTypeDescription
indexint (opens in a new tab)The zero-based index at which item should be inserted.
itemReactiveListThe object to insert into the IList (opens in a new tab).

Exceptions

TypeCondition
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

NameTypeDescription
indexint (opens in a new tab)The zero-based index at which value should be inserted.
valueobject? (opens in a new tab)The object to insert into the IList (opens in a new tab).

Exceptions

TypeCondition
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

NameTypeDescription
indexint (opens in a new tab)The zero-based index at which the item should be inserted.
itemTThe item to insert into the collection. Cannot be null.

Exceptions

TypeCondition
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

NameTypeDescription
outerIndexint (opens in a new tab)The zero-based index in the outer list of the row to insert into.
itemsIEnumerable (opens in a new tab)The collection of items to insert. Cannot be null.
innerIndexint (opens in a new tab)The zero-based index in the inner list at which to begin inserting the items.

Exceptions

TypeCondition
System.ArgumentNullException (opens in a new tab)Thrown if items is null.