SelectedItems.MultiSelect 属性

定义

获取当前选择是否包含多个项。

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

属性值

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  

适用于