Partager via


SelectedItems.MultiSelect Property

Definition

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  

Applies to