NavigateAscend Method
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

ShapeElement.NavigateAscend Method

Navigates to the next ancestor in the navigation sequence and updates the focus. Called in response to user navigation keystrokes.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

public virtual bool NavigateAscend(
	SelectedShapesCollection selection


Type: Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection

The selection in which the focus is to be changed.

Return Value

Type: System.Boolean
true if navigation occurred; otherwise, false.

Override this method to vary the selection behavior, for example to change the navigation sequence. After determining the next item to select, you can call NavigateTo(DiagramItem, SelectedShapesCollection).

By default, shape fields precede child shapes in the navigation sequence.

© 2016 Microsoft