This topic has not yet been rated - Rate this topic

ShapeElement.NavigateTo Method

Navigates to a specific shape in the navigation sequence and updates the focus.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
protected bool NavigateTo(
	DiagramItem newFocusItem,
	SelectedShapesCollection selection
)

Parameters

newFocusItem
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
The shape or field which should be the new focus.
selection
Type: Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection
The selection in which the focus is to be changed.

Return Value

Type: System.Boolean
true if the selection’s focus was changed; otherwise, false.

SelectedShapesCollection is a collection of DiagramItems. A DiagramItem can reference a ShapeElement; or a ShapeField within a ShapeElement; or a LineSegment within a LinkShape.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ