ListViewBase.SelectAll method

This topic has not yet been rated - Rate this topic

Selects all the items in a view.

Syntax


public void SelectAll()

Parameters

This method has no parameters.

Remarks

Warning  The SelectAll method should only be called when the SelectionMode property is set to Multiple or Extended. If SelectAll is called when the SelectionMode is Single or None, an exception is thrown.

Examples


if (itemGridView.SelectionMode == ListViewSelectionMode.Multiple ||
    itemGridView.SelectionMode == ListViewSelectionMode.Extended)
{
    itemGridView.SelectAll();
}

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

ListViewBase

 

 

Build date: 3/12/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.