ScrollableControl.GetScrollState(Int32) 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定是否设置了指定的标志。
protected:
bool GetScrollState(int bit);
C#
protected bool GetScrollState (int bit);
member this.GetScrollState : int -> bool
Protected Function GetScrollState (bit As Integer) As Boolean
- bit
- Int32
要检查的标志。
如果已设置指定的标志,则为 true
;否则为 false
。
下表描述了控件使用的标志 ScrollableControl 。
值 | 说明 |
---|---|
ScrollStateAutoScrolling | 用于检索属性是否设置为true 的AutoScroll掩码。 |
ScrollStateHScrollVisible | 用于检索属性是否设置为true 的HScroll掩码。 |
ScrollStateVScrollVisible | 用于检索属性是否设置为true 的VScroll掩码。 |
ScrollStateUserHasScrolled | 用于检索用户是否已进行滚动的 ScrollableControl 掩码。 |
ScrollStateFullDrag | 用于检索用户是否启用了全屏拖放操作的掩码。 |
产品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
Windows Desktop | 3.0, 3.1, 5, 6, 7 |