ModelElementLocator.NavigateTo Method (Guid, DiagramItem, ICollection<DiagramItem>, Boolean)
Display the targetShape's diagram and, if desired, select the shape (extend the selection to include the extendedSelection.)
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)
Syntax
'Declaration
Public Overridable Function NavigateTo ( _
logicalView As Guid, _
targetDiagramItem As DiagramItem, _
extendedSelection As ICollection(Of DiagramItem), _
changeSelection As Boolean _
) As Boolean
public virtual bool NavigateTo(
Guid logicalView,
DiagramItem targetDiagramItem,
ICollection<DiagramItem> extendedSelection,
bool changeSelection
)
public:
virtual bool NavigateTo(
Guid logicalView,
DiagramItem^ targetDiagramItem,
ICollection<DiagramItem^>^ extendedSelection,
bool changeSelection
)
abstract NavigateTo :
logicalView:Guid *
targetDiagramItem:DiagramItem *
extendedSelection:ICollection<DiagramItem> *
changeSelection:bool -> bool
override NavigateTo :
logicalView:Guid *
targetDiagramItem:DiagramItem *
extendedSelection:ICollection<DiagramItem> *
changeSelection:bool -> bool
public function NavigateTo(
logicalView : Guid,
targetDiagramItem : DiagramItem,
extendedSelection : ICollection<DiagramItem>,
changeSelection : boolean
) : boolean
Parameters
- logicalView
Type: Guid
targetDiagramItem
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemShape to select.
extendedSelection
Type: ICollection<DiagramItem>Collection of ShapeElements to also select. May be an empty list or null.
changeSelection
Type: BooleanIf true, change the selection. If false, show the elements without selecting them.
Return Value
Type: Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.