XPTable.Models.Table.OnVerticalScroll C# (CSharp) Method

OnVerticalScroll() protected method

Occurs when the Table's vertical scrollbar is scrolled
protected OnVerticalScroll ( object sender, ScrollEventArgs e ) : void
sender object The object that Raised the event
e ScrollEventArgs A ScrollEventArgs that contains the event data
return void
        protected void OnVerticalScroll(object sender, ScrollEventArgs e)
        {
            // stop editing as the editor doesn't move while
            // the table scrolls
            if (this.IsEditing)
                this.StopEditing();

            if (this.CanRaiseEvents)
            {
                if (e.Type == ScrollEventType.EndScroll
                    || e.Type == ScrollEventType.SmallIncrement
                    || e.Type == ScrollEventType.SmallDecrement)
                {
                    int i = EnsureSafeVScrollValue(e.NewValue);
                    e.NewValue = i;
                }
            }
        }
Table