ModelingWindowPane.SelectObjects 方法

选择窗口窗格中的元素。

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

语法

声明
Public Function SelectObjects ( _
    count As UInteger, _
    objects As Object(), _
    flags As UInteger _
) As Integer
public int SelectObjects(
    uint count,
    Object[] objects,
    uint flags
)

参数

  • objects
    类型:array<System.Object[]
    要选择的元素的集合。
  • flags
    类型:System.UInt32
    用来修改选定内容的标志。如果设置为 SELOBJS_ACTIVATEWINDOW,则此参数激活具有所选对象的窗口。

返回值

类型:System.Int32
如果找到所选的元素,则为 S_OK;否则为 E_UNEXPECTED

实现

ISelectionContainer.SelectObjects(UInt32, array<Object[], UInt32)

备注

选定内容不包含非形状元素。 此方法是 ISelectionContainer的实现的一部分。

.NET Framework 安全性

请参阅

参考

ModelingWindowPane 类

Microsoft.VisualStudio.Modeling.Shell 命名空间