共用方式為


ShapeElement.NavigateTo 方法

命名空間:  Microsoft.VisualStudio.Modeling.Diagrams
組件:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)

語法

'宣告
Protected Function NavigateTo ( _
    newFocusItem As DiagramItem, _
    selection As SelectedShapesCollection _
) As Boolean
protected bool NavigateTo(
    DiagramItem newFocusItem,
    SelectedShapesCollection selection
)

參數

傳回值

型別:System.Boolean
true 如果變更選取範圍的焦點。 否則,false。

備註

SelectedShapesCollection 是一堆 DiagramItems。 DiagramItem 可以參考的 ShapeElement。 或 ShapeField 中的 ShapeElement。 或在 LinkShape 的 LineSegment。

.NET Framework 安全性

請參閱

參考

ShapeElement 類別

Microsoft.VisualStudio.Modeling.Diagrams 命名空間