ShapeSubField.NavigateTo Method
Sets the focus to the specified DiagramItem.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaración
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.DiagramItem
The DiagramItem to receive the focus.
- selection
Type: Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection
The selection to update. (The selection maintains the focus.)
Return Value
Type: System.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.