ElementHost.Select(Boolean, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
激活托管元素。
protected:
override void Select(bool directed, bool forward);
protected override void Select(bool directed, bool forward);
override this.Select : bool * bool -> unit
Protected Overrides Sub Select (directed As Boolean, forward As Boolean)
参数
- directed
- Boolean
true 指定要选择的控件的方向;否则,为 false.
- forward
- Boolean
true 在 Tab 键顺序中向前移动; false 以 Tab 键顺序向后移动。
注解
该方法 Select 激活托管元素。 如果存在多个托管元素,则会根据和forward参数激活directed第一个或最后一个元素。
对方法的重复调用 Select 不会遍历托管元素。 若要选择后续元素,请 MoveFocus 对 HostContainer 属性调用该方法。
此实现将选项卡键从 Windows 窗体转发到 Windows Presentation Foundation (WPF)。