ModelElementLocator.NavigateTo 方法

定义

重载

NavigateTo(Guid, Diagram)

打开目标关系图。

NavigateTo(Guid, ShapeElement)

显示并选择提供的形状。

NavigateTo(Guid, Diagram, ICollection<DiagramItem>)

显示目标关系图并选择目标形状。 所有目标形状都应位于目标关系图中。 列表中的第一个形状是主选择。

NavigateTo(Guid, DiagramItem, ICollection<DiagramItem>)

显示 targetShape 的关系图并选择该形状 (扩展选定内容以包括 extendedSelection。 )

NavigateTo(Guid, DiagramItem, ICollection<DiagramItem>, Boolean)

显示 targetShape 的关系图,如果需要,请选择该形状 (扩展选定内容以包括 extendedSelection。 )

NavigateTo(Guid, Diagram)

打开目标关系图。

public:
 virtual bool NavigateTo(Guid logicalView, Microsoft::VisualStudio::Modeling::Diagrams::Diagram ^ targetDiagram);
public virtual bool NavigateTo (Guid logicalView, Microsoft.VisualStudio.Modeling.Diagrams.Diagram targetDiagram);
abstract member NavigateTo : Guid * Microsoft.VisualStudio.Modeling.Diagrams.Diagram -> bool
override this.NavigateTo : Guid * Microsoft.VisualStudio.Modeling.Diagrams.Diagram -> bool
Public Overridable Function NavigateTo (logicalView As Guid, targetDiagram As Diagram) As Boolean

参数

logicalView
Guid
targetDiagram
Diagram

返回

Boolean

如果成功,则为 true

适用于

NavigateTo(Guid, ShapeElement)

显示并选择提供的形状。

public:
 bool NavigateTo(Guid logicalView, Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ targetShape);
public bool NavigateTo (Guid logicalView, Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement targetShape);
member this.NavigateTo : Guid * Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> bool
Public Function NavigateTo (logicalView As Guid, targetShape As ShapeElement) As Boolean

参数

logicalView
Guid
targetShape
ShapeElement

返回

Boolean

适用于

NavigateTo(Guid, Diagram, ICollection<DiagramItem>)

显示目标关系图并选择目标形状。 所有目标形状都应位于目标关系图中。 列表中的第一个形状是主选择。

public:
 bool NavigateTo(Guid logicalView, Microsoft::VisualStudio::Modeling::Diagrams::Diagram ^ targetDiagram, System::Collections::Generic::ICollection<Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^> ^ targetSelection);
public bool NavigateTo (Guid logicalView, Microsoft.VisualStudio.Modeling.Diagrams.Diagram targetDiagram, System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem> targetSelection);
member this.NavigateTo : Guid * Microsoft.VisualStudio.Modeling.Diagrams.Diagram * System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem> -> bool
Public Function NavigateTo (logicalView As Guid, targetDiagram As Diagram, targetSelection As ICollection(Of DiagramItem)) As Boolean

参数

logicalView
Guid
targetDiagram
Diagram
targetSelection
ICollection<DiagramItem>

要选择 (应在 targetDiagram 上的 ShapeElements 的集合。 )

返回

Boolean

适用于

NavigateTo(Guid, DiagramItem, ICollection<DiagramItem>)

显示 targetShape 的关系图并选择该形状 (扩展选定内容以包括 extendedSelection。 )

public:
 bool NavigateTo(Guid logicalView, Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ diagramItem, System::Collections::Generic::ICollection<Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^> ^ extendedSelection);
public bool NavigateTo (Guid logicalView, Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem diagramItem, System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem> extendedSelection);
member this.NavigateTo : Guid * Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem * System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem> -> bool
Public Function NavigateTo (logicalView As Guid, diagramItem As DiagramItem, extendedSelection As ICollection(Of DiagramItem)) As Boolean

参数

logicalView
Guid
diagramItem
DiagramItem

DiagramItem 到 navigte 并选择

extendedSelection
ICollection<DiagramItem>

要选择的 ShapeElements 的集合也可以为空列表或 null。

返回

Boolean

适用于

NavigateTo(Guid, DiagramItem, ICollection<DiagramItem>, Boolean)

显示 targetShape 的关系图,如果需要,请选择该形状 (扩展选定内容以包括 extendedSelection。 )

public:
 virtual bool NavigateTo(Guid logicalView, Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ targetDiagramItem, System::Collections::Generic::ICollection<Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^> ^ extendedSelection, bool changeSelection);
public virtual bool NavigateTo (Guid logicalView, Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem targetDiagramItem, System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem> extendedSelection, bool changeSelection);
abstract member NavigateTo : Guid * Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem * System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem> * bool -> bool
override this.NavigateTo : Guid * Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem * System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem> * bool -> bool
Public Overridable Function NavigateTo (logicalView As Guid, targetDiagramItem As DiagramItem, extendedSelection As ICollection(Of DiagramItem), changeSelection As Boolean) As Boolean

参数

logicalView
Guid
targetDiagramItem
DiagramItem

要 navigte 到的形状并选择

extendedSelection
ICollection<DiagramItem>

要选择的 ShapeElements 的集合也可以为空列表或 null。

changeSelection
Boolean

是否确实要更改所选内容。

返回

Boolean

适用于