示例#1
0
        public void OnChangeScrollInfo(IVsTextView view, int iBar, int iMinUnit, int iMaxUnits, int iVisibleUnits, int iFirstVisibleUnit)
        {
            var evt = ScrollChanged;

            if (evt != null)
            {
                ViewScrollInfo scrollInfo = new ViewScrollInfo()
                {
                    bar              = iBar,
                    minUnit          = iMinUnit,
                    maxUnit          = iMaxUnits,
                    visibleUnits     = iVisibleUnits,
                    firstVisibleUnit = iFirstVisibleUnit
                };
                evt(this, new ViewScrollChangedEventArgs(view, scrollInfo));
            }
        }
		public ViewScrollChangedEventArgs(IVsTextView view, ViewScrollInfo scrollInfo)
		{
			_view = view;
			_scrollInfo = scrollInfo;
		}