通过


ScrollableControl.GetScrollState(Int32) 方法

定义

确定是否已设置指定的标志。

protected:
 bool GetScrollState(int bit);
protected bool GetScrollState(int bit);
member this.GetScrollState : int -> bool
Protected Function GetScrollState (bit As Integer) As Boolean

参数

bit
Int32

要检查的标志。

返回

true 如果已设置指定的标志,则为否则,为 false.

注解

下表描述了控件使用的标志 ScrollableControl

价值 说明
ScrollStateAutoScrolling 用于检索属性是否 AutoScroll 设置为 true的掩码。
ScrollStateHScrollVisible 用于检索属性是否 HScroll 设置为 true的掩码。
ScrollStateVScrollVisible 用于检索属性是否 VScroll 设置为 true的掩码。
ScrollStateUserHasScrolled 用于检索用户是否已滚动的 ScrollableControl 掩码。
ScrollStateFullDrag 用于检索用户是否启用了全屏拖放操作的掩码。

适用于

另请参阅