ScrollableControl.SetScrollState(Int32, Boolean) 方法

定義

設定指定的捲動狀態旗標。Sets the specified scroll state flag.

protected:
 void SetScrollState(int bit, bool value);
protected void SetScrollState (int bit, bool value);
member this.SetScrollState : int * bool -> unit
Protected Sub SetScrollState (bit As Integer, value As Boolean)

參數

bit
Int32

要設定的捲動狀態旗標。The scroll state flag to set.

value
Boolean

要設定旗標的值。The value to set the flag.

備註

當位參數設定為ScrollableControl類別的其中一個欄位時SetScrollState ,方法會將控制項的狀態更新為value參數。When the bit parameter is set to one of the fields of the ScrollableControl class, the SetScrollState method updates the state of the control to the value parameter. 如需有效參數和其值的詳細資訊,請參閱GetScrollState方法。For more information about the valid parameters and their values, see the GetScrollState method.

適用於

另請參閱