System.Windows.Forms.ScrollableControl.GetScrollState Method

Determines whether the specified flag has been set.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected bool GetScrollState (int bit)

Parameters

bit
The flag to check.

Returns

true if the specified flag has been set; otherwise, false.

Remarks

The following table describes the flags the System.Windows.Forms.ScrollableControl control uses.

ScrollableControl.ScrollStateAutoScrolling

A mask used to retrieve whether the ScrollableControl.AutoScroll property is set to true.

ScrollableControl.ScrollStateHScrollVisible

A mask used to retrieve whether the ScrollableControl.HScroll property is set to true.

ScrollableControl.ScrollStateVScrollVisible

A mask used to retrieve whether the ScrollableControl.VScroll property is set to true.

ScrollableControl.ScrollStateUserHasScrolled

A mask used to retrieve whether the user has made the System.Windows.Forms.ScrollableControl scroll.

ScrollableControl.ScrollStateFullDrag

A mask used to retrieve whether the user has enabled the full window drag-and-drop operation.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0