ListBox.SetSelectedItems Method (IEnumerable)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Sets a collection of selected items.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

Protected Function SetSelectedItems (
	selectedItems As IEnumerable
) As Boolean

Parameters

selectedItems
Type: System.Collections.IEnumerable

Collection of items to be selected.

Return Value

Type: System.Boolean

true if all items have been selected; otherwise, false.

.NET Framework
Available since 3.0
Return to top
Show: