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
)
參數
- logicalView
型別:System.Guid
- targetDiagram
型別:Microsoft.VisualStudio.Modeling.Diagrams.Diagram
- targetSelection
型別:System.Collections.Generic.ICollection<DiagramItem>
在 targetDiagram 的 ShapeElements 集合。
傳回值
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。