ITextRangeProvider.ScrollIntoView Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Causes the text control to scroll vertically until the text range is visible in the viewport.
Namespace: System.Windows.Automation.Provider
Assembly: System.Windows (in System.Windows.dll)
Syntax
Sub ScrollIntoView ( _
alignToTop As Boolean _
)
void ScrollIntoView(
bool alignToTop
)
Parameters
- alignToTop
Type: System..::.Boolean
true if the text control should be scrolled so that the text range is flush with the top of the viewport; false if the text range is flush with the bottom of the viewport.
Remarks
ScrollIntoView can scroll to both hidden and visible text. However, if the text range is hidden, the text control scrolls only if the hidden text has an anchor in the viewport.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1
Platforms
Windows Phone