ItemCollectionRemove Method

Removes the specified item reference from the collection or view.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public bool Remove(
	Object? value
)

Parameters

value  Object
The object to remove.

Return Value

Boolean
True if the item was removed; otherwise false.

Exceptions

InvalidOperationException The collection is in ItemsSource mode.

See Also