IUIAutomationScrollPattern::SetScrollPercent Method
Sets the horizontal and vertical scroll positions as a percentage of the total content area within the UI Automation element.
Syntax
HRESULT SetScrollPercent( double horizontalPercent, double verticalPercent );
Parameters
- horizontalPercent
[in] The percentage of the total horizontal content area, or UIA_ScrollPatternNoScroll if the horizontal position is not to be set.- verticalPercent
[in] The percentage of the total vertical content area, or UIA_ScrollPatternNoScroll if the vertical position is not to be set.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
This method is useful only when the content area of the control is larger than the visible region.
See Also