SelectedItems.MultiSelect 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取当前选择是否包含多个项。
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
属性值
指示 True 所选内容是否包含多个项的布尔值 False 。
- 属性
示例
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