ScrollableControl.GetScrollState(Int32) ScrollableControl.GetScrollState(Int32) ScrollableControl.GetScrollState(Int32) ScrollableControl.GetScrollState(Int32) Method

定义

确定是否设置了指定的标志。Determines whether the specified flag has been set.

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

要检查的标志。The flag to check.

返回

如果已设置指定的标志,则为 true;否则为 falsetrue if the specified flag has been set; otherwise, false.

注解

下表描述了ScrollableControl控件使用的标志。The following table describes the flags the ScrollableControl control uses.

Value 说明Description
ScrollStateAutoScrolling 用于检索属性是否设置为AutoScroll true的掩码。A mask used to retrieve whether the AutoScroll property is set to true.
ScrollStateHScrollVisible 用于检索属性是否设置为HScroll true的掩码。A mask used to retrieve whether the HScroll property is set to true.
ScrollStateVScrollVisible 用于检索属性是否设置为VScroll true的掩码。A mask used to retrieve whether the VScroll property is set to true.
ScrollStateUserHasScrolled 用于检索用户是否已进行ScrollableControl滚动的掩码。A mask used to retrieve whether the user has made the ScrollableControl scroll.
ScrollStateFullDrag 用于检索用户是否已启用全窗口拖放操作的掩码。A mask used to retrieve whether the user has enabled the full window drag-and-drop operation.

适用于

另请参阅