ShapeSubField.NavigateToFirst 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
由此 ShapeSubField 调用,以将焦点设置到此子字段的第一个同级节点 (即,父级的第一个子) 导航序列。
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。
- parentField
- ShapeField
此 ShapeSubField 的父 ShapeField。
- selection
- SelectedShapesCollection
焦点和选择将更新的当前选定内容。
返回
如果发生导航,则为 True; 否则为 false。
注解
如果 ShapeElement、ShapeField 或 ShapeSubField 不可设定焦点,则它不参与导航序列。