Beispiel #1
0
 private void OnHorizontalTextScroll(VSTextEditorScrollEventArgs ea)
 {
     if (HorizontalTextScroll != null)
         HorizontalTextScroll(this, ea);
 }
Beispiel #2
0
 private void OnVerticalTextScroll(VSTextEditorScrollEventArgs ea)
 {
     if (VerticalTextScroll != null)
         VerticalTextScroll(this, ea);
 }
Beispiel #3
0
        /// <summary>
        /// Occurs when the text view scrolled
        /// </summary>
        void IVsTextViewEvents.OnChangeScrollInfo(IVsTextView pView, int iBar, int iMinUnit, int iMaxUnits, int iVisibleUnits, int iFirstVisibleUnit)
        {
            bool vertical = (iBar == 1);
            VSTextEditorScrollEventArgs ea = new VSTextEditorScrollEventArgs(iMinUnit, iMaxUnits, iVisibleUnits, iFirstVisibleUnit);

            if (vertical)
                OnVerticalTextScroll(ea);
            else
                OnHorizontalTextScroll(ea);
        }