ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.5.2 Assembly / C1.Win.C1FlexGrid Namespace / C1FlexGridBase Class / OnChangeScrollBarPosition Method
Scroll command (SB_LINEUP, etc).
True for the vertical scrollbar, false for the horizontal scrollbar.
Current scrollbar position.
Scrollbar thumb position.

In This Topic
    OnChangeScrollBarPosition Method (C1FlexGridBase)
    In This Topic
    Calculates the new position of a scrollbar in response to a user command.
    Syntax
    'Declaration
     
    Protected Overrides Function OnChangeScrollBarPosition( _
       ByVal cmd As Integer, _
       ByVal verticalBar As Boolean, _
       ByVal curPos As Integer, _
       ByVal trackPos As Integer _
    ) As Integer
    protected override int OnChangeScrollBarPosition( 
       int cmd,
       bool verticalBar,
       int curPos,
       int trackPos
    )

    Parameters

    cmd
    Scroll command (SB_LINEUP, etc).
    verticalBar
    True for the vertical scrollbar, false for the horizontal scrollbar.
    curPos
    Current scrollbar position.
    trackPos
    Scrollbar thumb position.

    Return Value

    The new position for the scrollbar.
    Remarks
    Derived classes may override this method to customize the scrolling behavior.
    See Also