Expand Minimize

ListViewBase.SelectAll method

Applies to Windows and Windows Phone

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

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

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

Metadata

Windows.winmd

See also

ListViewBase

 

 

Show:
© 2014 Microsoft. All rights reserved.