ToolStrip.Select(Boolean, Boolean) ToolStrip.Select(Boolean, Boolean) ToolStrip.Select(Boolean, Boolean) ToolStrip.Select(Boolean, Boolean) Method

定義

啟動子控制項。Activates a child control. 選擇性指定定位順序中要選取控制項的方向。Optionally specifies the direction in the tab order to select the control from.

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 Boolean Boolean Boolean

true 以指定要選取控制項的方向,否則為 falsetrue to specify the direction of the control to select; otherwise, false.

forward
Boolean Boolean Boolean Boolean

true 會在定位順序中向前移動。false 會在定位順序中向後移動。true to move forward in the tab order; false to move backward in the tab order.

備註

directedforward容器樣式控制項使用的參數。The directed and forward parameters are used by container-style controls. directed參數設定為true,則forward參數進行評估以判斷哪一個控制項來選取。When the directed parameter is set to true, the forward parameter is evaluated to determine which control to select. forward設為true,選取定位順序中的下一個控制項; 時false,選取上一個控制項的定位順序。When forward is set to true, the next control in the tab order is selected; when false, the previous control in the tab order is selected.

Select方法啟動的控制項,如果控制項的ControlStyles.Selectable樣式位元設為true,它包含在另一個控制項,其所有父控制項都則顯示並啟用。The Select method activates the control if the control's ControlStyles.Selectable style bit is set to true, it is contained in another control, and all its parent controls are both visible and enabled.

適用於