ModelElementLocator.NavigateTo 方法 (Guid, Diagram, ICollection<DiagramItem>)
顯示目標圖表,並選取目標圖案。 清單中的第一個圖案是主要選取項目。
命名空間: Microsoft.VisualStudio.Modeling.Shell
組件: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.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>
ShapeElements 的集合在 targetDiagram 上的。
傳回值
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。