Export (0) Print
Expand All
ID
Top
Expand Minimize

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
[C++]
HRESULT __stdcall get_MultiSelect(
   /* [out, retval] */ VARIANT_BOOL* retVal
);
[C#]
public bool MultiSelect {get;}
[JScript .NET]
public function get MultiSelect() : Boolean

Return Value

True if the selection contains multiple items, False if not.

Example

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

Show:
© 2014 Microsoft