This documentation is archived and is not being maintained.

SelectionContainer.SelectedObjects Property

Gets or sets the collection of selected objects.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

'Declaration
Public Property SelectedObjects As ICollection
'Usage
Dim instance As SelectionContainer 
Dim value As ICollection 

value = instance.SelectedObjects

instance.SelectedObjects = value

Property Value

Type: System.Collections.ICollection
Returns a collection of selected objects.

This collection is equivalent to the collection returned by a call to ISelectionContainer with a selection type of SELECTED. The value of this collection changes when the selection container has its SelectObjects method called.

Show: