TextRange_ScrollIntoView Function

Note  This function is deprecated. Client applications should use the Microsoft UI Automation COM interfaces instead.

Scrolls the text so the specified range is visible in the viewport.


HRESULT TextRange_ScrollIntoView(      
    BOOL alignToTop


  • hobj
    [in] The text range to scroll.
  • alignToTop
    [in] TRUE to align the top of the text range with the top of the viewport; FALSE to align the bottom of the text range with the bottom of the viewport.

Return Value

Returns S_OK if successful or an error value otherwise.

Function Information

Stock Implementation uiautomationcore.dll
Custom Implementation No
Header uiautomationcoreapi.h
Import library uiautomationcore.lib
Minimum operating systems Windows XP