ShapeSubField.NavigateTo Method
Sets the focus to the specified DiagramItem.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Public Function NavigateTo ( _
newFocusItem As DiagramItem, _
selection As SelectedShapesCollection _
) As Boolean
public bool NavigateTo(
DiagramItem newFocusItem,
SelectedShapesCollection selection
)
public:
bool NavigateTo(
DiagramItem^ newFocusItem,
SelectedShapesCollection^ selection
)
member NavigateTo :
newFocusItem:DiagramItem *
selection:SelectedShapesCollection -> bool
public function NavigateTo(
newFocusItem : DiagramItem,
selection : SelectedShapesCollection
) : boolean
Parameters
newFocusItem
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemThe DiagramItem to receive the focus.
selection
Type: Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollectionThe selection to update. (The selection maintains the focus.)
Return Value
Type: Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.