ShapeSubField.NavigateTo(DiagramItem, SelectedShapesCollection) 方法

定义

将焦点设置到指定的 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

参数

newFocusItem
DiagramItem

要接收焦点的 DiagramItem。

selection
SelectedShapesCollection

要更新的选定内容。 (所选内容保持焦点。 )

返回

Boolean

如果发生导航,则为 True; 否则为 false。

适用于