共用方式為


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

顯示目標圖表,再選取 [目標] 圖形。 在清單中的第一個圖案是主要的選取範圍。

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

語法

'宣告
Public Function NavigateTo ( _
    logicalView As Guid, _
    targetDiagram As Diagram, _
    targetSelection As ICollection(Of DiagramItem) _
) As Boolean
public bool NavigateTo(
    Guid logicalView,
    Diagram targetDiagram,
    ICollection<DiagramItem> targetSelection
)

參數

傳回值

型別:System.Boolean

.NET Framework 安全性

請參閱

參考

ModelElementLocator 類別

NavigateTo 多載

Microsoft.VisualStudio.Modeling.Shell 命名空間