Share via


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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Syntax

'Declaration
Protected Function NavigateTo ( _
    newFocusItem As DiagramItem, _
    selection As SelectedShapesCollection _
) As Boolean
protected bool NavigateTo(
    DiagramItem newFocusItem,
    SelectedShapesCollection selection
)
protected:
bool NavigateTo(
    DiagramItem^ newFocusItem, 
    SelectedShapesCollection^ selection
)
member NavigateTo : 
        newFocusItem:DiagramItem * 
        selection:SelectedShapesCollection -> bool
protected function NavigateTo(
    newFocusItem : DiagramItem, 
    selection : SelectedShapesCollection
) : boolean

Parameters

Return Value

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

Remarks

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

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace