For example, to set the scrollbar position of Text object text2 to exactly the same position as Text object text1, use the following syntax:
var scrollPos = text1.GetScrollInfo()text2.SetScrollPosition(scrollPos.vpos,scrollPos.hpos)