SelectedItems.MultiSelect Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets whether or not the current selection includes multiple items.
public:
property bool MultiSelect { bool get(); };
public:
property bool MultiSelect { bool get(); };
[System.Runtime.InteropServices.DispId(4)]
public bool MultiSelect { [System.Runtime.InteropServices.DispId(4)] get; }
[<System.Runtime.InteropServices.DispId(4)>]
[<get: System.Runtime.InteropServices.DispId(4)>]
member this.MultiSelect : bool
Public ReadOnly Property MultiSelect As Boolean
Property Value
A Boolean value indicating True
if the selection contains multiple items, False
if not.
- Attributes
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