Share via


SelectedItems.MultiSelect Property

Gets whether or not the current selection includes multiple items.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
ReadOnly Property MultiSelect As Boolean
'Usage
Dim instance As SelectedItems 
Dim value As Boolean 

value = instance.MultiSelect
bool MultiSelect { get; }
property bool MultiSelect {
    bool get ();
}
function get MultiSelect () : boolean

Property Value

Type: System.Boolean
A Boolean value indicating True if the selection contains multiple items, False if not.

Examples

Sub MultiSelectExample()
   Dim SelItems As SelectedItems

   SelItems = DTE.SelectedItems
   ' List the number of items selected.
   If SelItems.MultiSelect = True Then
      MsgBox("You have " & SelItems.Count & " items selected in Solution Explorer.")
   End If
End Sub

.NET Framework Security

See Also

Reference

SelectedItems Interface

SelectedItems Members

EnvDTE Namespace