ShapeElement.NavigateTo(DiagramItem, SelectedShapesCollection) Method

Definition

Called by the Navigate methods to set the focus to the specified DiagramItem.

C++
protected:
 bool NavigateTo(Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ newFocusItem, Microsoft::VisualStudio::Modeling::Diagrams::SelectedShapesCollection ^ selection);

Parameters

newFocusItem
DiagramItem

The DiagramItem to receive the focus.

selection
SelectedShapesCollection

The selection to update. (The selection maintains the focus.)

Returns

True if navigation occurred, false otherwise.

Applies to

Product Versions
Visual Studio SDK 2017, 2019, 2022