ModelElementLocator.NavigateTo 方法 (Guid, DiagramItem, ICollection<DiagramItem>)
顯示 targetShape 的圖表,並選取的圖形 (延伸選取範圍包括 extendedSelection)。
命名空間: 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, _
diagramItem As DiagramItem, _
extendedSelection As ICollection(Of DiagramItem) _
) As Boolean
public bool NavigateTo(
Guid logicalView,
DiagramItem diagramItem,
ICollection<DiagramItem> extendedSelection
)
參數
- logicalView
型別:System.Guid
- diagramItem
型別:Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
若要選取的圖形。
- extendedSelection
型別:System.Collections.Generic.ICollection<DiagramItem>
ShapeElements 也選取的集合。可能是空的清單或 null。
傳回值
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。