ModelingWindowPane.SelectionCount 属性

获取窗口窗格中选定的元素数。

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)

语法

声明
Public ReadOnly Property SelectionCount As Integer
public int SelectionCount { get; }

属性值

类型:System.Int32
在窗口窗格中被选中的元素的数目。

实现

ISelectionService.SelectionCount

备注

默认情况下,此方法返回 SelectedElements 集合的计数。

.NET Framework 安全性

请参阅

参考

ModelingWindowPane 类

Microsoft.VisualStudio.Modeling.Shell 命名空间