ListBox.UnselectAll メソッド

定義

ListBox の選択をすべて削除します。

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

次の例は、 メソッドを使用 UnselectAll してリスト ボックス内のすべての項目の選択を解除する方法を示しています。

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

適用対象