public ScrollToHorizontalOffset ( double offset ) : void | ||
offset | double | |
return | void |
//........................................................... 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); }
public void ScrollToHorizontalOffset(double offset) { _editor.ScrollToHorizontalOffset(offset); }