ShapeElement.NavigateTo(DiagramItem, SelectedShapesCollection) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
protected bool NavigateTo(Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem newFocusItem, Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection selection);
member this.NavigateTo : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem * Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection -> bool
Protected Function NavigateTo (newFocusItem As DiagramItem, selection As SelectedShapesCollection) As Boolean
- newFocusItem
- DiagramItem
The DiagramItem to receive the focus.
- selection
- SelectedShapesCollection
The selection to update. (The selection maintains the focus.)
True if navigation occurred, false otherwise.
Product | Versions |
---|---|
Visual Studio SDK | 2017, 2019, 2022 |