Ejemplo n.º 1
0
 /// <summary>
 ///     Scrolls the given <paramref name="control"/> vertically by the specified <paramref name="amount"/>,
 ///     ensuring that the new scroll value does not exceed the <paramref name="control"/>'s minimum or maximum
 ///     scroll values.
 /// </summary>
 /// <param name="control">
 ///     A scrollable control.
 /// </param>
 /// <param name="amount">
 ///     Number of pixels (positive or negative) to scroll.
 /// </param>
 public static void ScrollVerticallyBy(this ScrollableControl control, int amount)
 {
     control.SetVerticalScroll(control.VerticalScroll.Value + amount);
 }