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.

适用于

另请参阅