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.

適用於

另請參閱