言語

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

適用対象