ItemCollectionInsert Method

Inserts an element into the collection at the specified index.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public void Insert(
	int index,
	Object? value
)

Parameters

index  Int32
The zero-based index at which to insert the item.
value  Object
The item to insert.

Exceptions

InvalidOperationException The collection is in ItemsSource mode.

See Also