Method SetScrollBar
SetScrollBar(Control, bool, int, int, bool)
Sets the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb).
public static void SetScrollBar(Control control, bool flat, int size, int pageSize, bool isVertical)
Parameters
control
ControlA scroll bar control or a window with a standard scroll bar.
flat
boolIndicates whether scroll bar is flat.
size
intSpecifies the maximum scrolling position.
pageSize
intSpecifies the page size.
isVertical
boolIndicates whether scroll bar is vertical or horizontal.
SetScrollBar(AbstractControl, bool, int, int, bool)
public static void SetScrollBar(AbstractControl control, bool flat, int size, int pageSize, bool isVertical)
Parameters
control
AbstractControlflat
boolsize
intpageSize
intisVertical
bool