This documentation is archived and is not being maintained.

MultiSelect Property

Visual Studio .NET 2003

Returns whether or not the current selection includes multiple items.

[Visual Basic .NET]
Public ReadOnly Property MultiSelect() As Boolean
[Visual Basic 6]
Property Get MultiSelect() As Boolean
HRESULT __stdcall get_MultiSelect(
   /* [out, retval] */ VARIANT_BOOL* retVal
public bool MultiSelect {get;}
[JScript .NET]
public function get MultiSelect() : Boolean

Return Value

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

See Also

Applies To: SelectedItems Collection