SplitContainer.ProcessTabKey(Boolean) SplitContainer.ProcessTabKey(Boolean) SplitContainer.ProcessTabKey(Boolean) SplitContainer.ProcessTabKey(Boolean) Method

定义

选择下一个可用控件并使其成为活动控件。Selects the next available control and makes it the active control.

protected:
 override bool ProcessTabKey(bool forward);
protected override bool ProcessTabKey (bool forward);
override this.ProcessTabKey : bool -> bool
Protected Overrides Function ProcessTabKey (forward As Boolean) As Boolean

参数

forward
Boolean Boolean Boolean Boolean

如果在 ContainerControl 内的控件中向前循环,则为 true;否则为 falsetrue to cycle forward through the controls in the ContainerControl; otherwise, false.

返回

如果选择了一个控件,则为 true;否则为 falsetrue if a control is selected; otherwise, false.

注解

ProcessTabKey按以下方式控制选项卡焦点顺序:ProcessTabKey controls the tab focus order in the following manner:

  • 从之外SplitContainer的第一个控件到中的第一个Panel1控件。From the first control outside the SplitContainer to the first control on Panel1.

  • 上的Panel1所有控件。All controls on Panel1.

  • 拆分器(以便用户可以使用箭头键移动拆分器)。The splitter (so that the user can use the arrow keys to move the splitter).

  • 上的Panel2所有控件。All controls on Panel2.

  • Tab 键顺序中的SplitContainer下一个控件之外的第二个控件。The second control outside the SplitContainer that is next in the tab order.

适用于