Clear Method
Clears the collection and releases the references on all items currently in the collection.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public void Clear()
Public Sub Clear
member Clear : unit -> unit
Exceptions
InvalidOperationException | The collection is in ItemsSource mode. |