Form.Select(Boolean, Boolean) 方法

定义

选择此窗体,并且可以选择下一个或上一个控件。Selects this form, and optionally selects the next or previous control.

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,则更改活动控件If set to true that the active control is changed

forward
Boolean

如果 directed 为 true,则它控制焦点移动的方向。If directed is true, then this controls the direction in which focus is moved. 如果此项为 true,则下一个控件被选定;否则,上一个控件被选定。If this is true, then the next control is selected; otherwise, the previous control is selected.

安全性

UIPermission
用于更改焦点。For changing focus. 关联枚举:AllWindowsAssociated enumeration: AllWindows.

适用于