ScrollToHorizontalOffset() public method

Scrolls to the specified position in the document.
public ScrollToHorizontalOffset ( double offset ) : void
offset double
return void
Esempio n. 1
0
        //...........................................................

        protected void ViewerR_HScrollChanged(object SENDER, System.EventArgs ARGS)
        {
            var sender  = SENDER as avalon.Rendering.TextView;
            var offsetR = sender.HorizontalOffset / (m_viewerR.ExtentWidth - m_viewerR.ViewportWidth);               // as %
            var offsetL = offsetR * (m_viewerL.ExtentWidth - m_viewerL.ViewportWidth);

            m_viewerL.ScrollToHorizontalOffset(offsetL);
        }
Esempio n. 2
0
 public void ScrollToHorizontalOffset(double offset)
 {
     _editor.ScrollToHorizontalOffset(offset);
 }