ScrollPattern_Scroll function

Note  This function is deprecated. Client applications should use the Microsoft UI Automation Component Object Model (COM) interfaces instead.
 
Scrolls the currently visible region of the content area the specified ScrollAmount, horizontally, vertically, or both.

Syntax

HRESULT ScrollPattern_Scroll(
  HUIAPATTERNOBJECT hobj,
  ScrollAmount      horizontalAmount,
  ScrollAmount      verticalAmount
);

Parameters

hobj

Type: HUIAPATTERNOBJECT

The control pattern object.

horizontalAmount

Type: ScrollAmount

The amount to scroll the container on the horizontal axis, as a percentage.

verticalAmount

Type: ScrollAmount

The amount to scroll the container on the vertical axis, as a percentage.

Return Value

Type: HRESULT

Returns S_OK if successful or an error value otherwise.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header uiautomationcoreapi.h
Library Uiautomationcore.lib
DLL Uiautomationcore.dll