Compartir a través de


SelectedItems.MultiSelect Property

Gets whether or not the current selection includes multiple items.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
ReadOnly Property MultiSelect As Boolean
bool MultiSelect { get; }
property bool MultiSelect {
    bool get ();
}
abstract MultiSelect : bool with get
function get MultiSelect () : boolean

Property Value

Type: System.Boolean
A Boolean value indicating True if the selection contains multiple items, False if not.

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

.NET Framework Security

See Also

Reference

SelectedItems Interface

EnvDTE Namespace