Share via


IScrollProvider::Scroll Method

Scrolls the visible region of the content area horizontally and vertically.

Syntax

HRESULT Scroll(      
    ScrollAmount horizontalAmount,
    ScrollAmount verticalAmount
);

Parameters

  • horizontalAmount
    [in] A value from the ScrollAmount enumerated type indicating the horizontal increment specific to the control.
  • verticalAmount
    [in] A value from the ScrollAmount enumerated type indicating the vertical increment specific to the control.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

IScrollProvider, UI Automation Providers Overview