IUIAutomationScrollPattern::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 size of the horizontal scroll increment, or UIA_ScrollPatternNoScroll if the horizontal position is not to be set.- verticalAmount
[in] A value from the ScrollAmount enumerated type indicating the size of the vertical scroll increment, or UIA_ScrollPatternNoScroll if the vertical position is not to be set.
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also