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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.