SelectedItems::MultiSelect Property
Visual Studio 2015
Gets whether or not the current selection includes multiple items.
Assembly: EnvDTE (in EnvDTE.dll)
Property Value
Type: System::BooleanA Boolean value indicating True if the selection contains multiple items, False if not.
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
Show: