ListBox.UnselectAll Metoda

Definice

Vymaže veškerý výběr v souboru ListBox.

public:
 void UnselectAll();
public void UnselectAll ();
member this.UnselectAll : unit -> unit
Public Sub UnselectAll ()

Příklady

Následující příklad ukazuje, jak pomocí UnselectAll metody zrušit výběr všech položek v seznamu.

private void UnselectAll(object sender, RoutedEventArgs e)
{
    lb.UnselectAll();
}
Private Sub UnselectAll(ByVal sender As Object, ByVal e As RoutedEventArgs)
    lb.UnselectAll()
End Sub

Platí pro