/// <summary> /// Scrolls the text in the provider so the range is within the viewport. /// </summary> /// <param name="alignToTop">true if the provider should be scrolled so the range is flush with the top of the viewport. /// false if the provider should be scrolled so the range is flush with the bottom.</param> public void ScrollIntoView(bool alignToTop) { UiaCoreApi.TextRange_ScrollIntoView(_hTextRange, alignToTop); }