Input for WinForms | ComponentOne
C1.Win.Accessibility.Items.BaseInterfaces Namespace / IUiaScrollProvider Interface / SetScrollPercent Method
horizontal position to scroll to
vertical position to scroll to

In This Topic
    SetScrollPercent Method (IUiaScrollProvider)
    In This Topic
    Request to set the current horizontal and Vertical scroll position by percent (0-100). Passing in the value of "-1", represented by the constant "NoScroll", will indicate that scrolling in that direction should be ignored. The ability to call this method and simultaneously scroll horizontally and vertically provides simple panning support.
    Syntax
    'Declaration
     
    
    Sub SetScrollPercent( _
       ByVal horizontalPercent As Double, _
       ByVal verticalPercent As Double _
    ) 
    void SetScrollPercent( 
       double horizontalPercent,
       double verticalPercent
    )

    Parameters

    horizontalPercent
    horizontal position to scroll to
    verticalPercent
    vertical position to scroll to
    See Also