ModelingWindowPane.PrimarySelection 属性

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

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

语法

声明
Public Property PrimarySelection As Object
public Object PrimarySelection { get; set; }

属性值

类型:System.Object
如果窗口不包含主要元素,则返回SelectedElements集合中的第一个元素。

实现

ISelectionService.PrimarySelection

.NET Framework 安全性

请参阅

参考

ModelingWindowPane 类

Microsoft.VisualStudio.Modeling.Shell 命名空间