예제 #1
0
 /// <summary>
 ///     Scrolls the given <paramref name="control"/> down by the height of the <paramref name="control"/> if possible.
 /// </summary>
 /// <param name="control">
 ///     A scrollable control to scroll down by one page.
 /// </param>
 public static void PageDown(this ScrollableControl control)
 {
     control.ScrollVerticallyBy(+control.Height);
 }
예제 #2
0
 /// <summary>
 ///     Scrolls the given <paramref name="control"/> down by the size of the <paramref name="control"/>'s font if possible.
 ///     This method is equivalent to the user pressing the "Down" arrow on the <paramref name="control"/>'s scrollbar.
 /// </summary>
 /// <param name="control">
 ///     A scrollable control to scroll down.
 /// </param>
 public static void ScrollDown(this ScrollableControl control)
 {
     control.ScrollVerticallyBy(+(int)control.Font.Size);
 }