ModelElementLocator.NavigateTo 方法 (Guid, DiagramItem, ICollection<DiagramItem>, Boolean)

如要求则显示 targetShape 的关系图,选择形状 (选择可扩展为包含 extendedSelection。)

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

语法

声明
Public Overridable Function NavigateTo ( _
    logicalView As Guid, _
    targetDiagramItem As DiagramItem, _
    extendedSelection As ICollection(Of DiagramItem), _
    changeSelection As Boolean _
) As Boolean
public virtual bool NavigateTo(
    Guid logicalView,
    DiagramItem targetDiagramItem,
    ICollection<DiagramItem> extendedSelection,
    bool changeSelection
)

参数

  • changeSelection
    类型:System.Boolean
    如果为 true,改变选定内容。如果为 false,则这些元素在未选择的情况下显示。

返回值

类型:System.Boolean

.NET Framework 安全性

请参阅

参考

ModelElementLocator 类

NavigateTo 重载

Microsoft.VisualStudio.Modeling.Shell 命名空间