Freigeben über


ShapeSubField.NavigateTo(DiagramItem, SelectedShapesCollection) Method

Definition

Sets the focus to the specified DiagramItem.

public:
 bool NavigateTo(Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ newFocusItem, Microsoft::VisualStudio::Modeling::Diagrams::SelectedShapesCollection ^ selection);
public 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
Public Function NavigateTo (newFocusItem As DiagramItem, selection As SelectedShapesCollection) As Boolean

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