ModelingWindowPane.CountSelectedObjects 方法

获取当前内容中的文本元素的数目。

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

语法

声明
Protected Overridable Function CountSelectedObjects As UInteger
protected virtual uint CountSelectedObjects()

返回值

类型:System.UInt32
当前选定内容中的元素的数目。

备注

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

.NET Framework 安全性

请参阅

参考

ModelingWindowPane 类

Microsoft.VisualStudio.Modeling.Shell 命名空间