Skip to main content

Remove Method

Removes the specified item reference from the collection or view.

Definition​

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public bool Remove(
Object? value
)

Parameters​

  Object
The object to remove.

Return Value​

Boolean
True if the item was removed; otherwise false.

Exceptions​

InvalidOperationExceptionThe collection is in ItemsSource mode.

See Also​

Reference​

ItemCollection Class
Avalonia.Controls Namespace