ShapeSubField.NavigateToFirst(ShapeElement, ShapeField, SelectedShapesCollection) 方法

定义

由此 ShapeSubField 调用,以将焦点设置到此子字段的第一个同级节点 (即,父级的第一个子) 导航序列。Called by this ShapeSubField to set focus to this subfield's first sibling (i.e., the parent's first child) in the navigation sequence.

public:
 virtual bool NavigateToFirst(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape, Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^ parentField, Microsoft::VisualStudio::Modeling::Diagrams::SelectedShapesCollection ^ selection);
public virtual bool NavigateToFirst (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape, Microsoft.VisualStudio.Modeling.Diagrams.ShapeField parentField, Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection selection);
abstract member NavigateToFirst : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.ShapeField * Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection -> bool
override this.NavigateToFirst : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.ShapeField * Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection -> bool
Public Overridable Function NavigateToFirst (parentShape As ShapeElement, parentField As ShapeField, selection As SelectedShapesCollection) As Boolean

参数

parentShape
ShapeElement

此 ShapeSubField 的父 ShapeElement。The parent ShapeElement of this ShapeSubField.

parentField
ShapeField

此 ShapeSubField 的父 ShapeField。The parent ShapeField of this ShapeSubField.

selection
SelectedShapesCollection

焦点和选择将更新的当前选定内容。The current selection whose focus and selection will be updated.

返回

Boolean

如果发生导航,则为 True; 否则为 false。True if navigation occurred, false otherwise.

注解

如果 ShapeElement、ShapeField 或 ShapeSubField 不可设定焦点,则它不参与导航序列。If a ShapeElement, ShapeField, or ShapeSubField is not focusable, it does not participate in the navigation sequence.

适用于