Method SetScrollPos
SetScrollPos(Control, bool, int, bool)
Sets the position of the scroll box (thumb) in the specified scroll bar.
public static void SetScrollPos(Control control, bool flat, int pos, bool isVertical)
Parameters
control
ControlA scroll bar control or a window with a standard scroll bar.
flat
boolIndicates whether scroll bar is flat.
pos
intSpecifies the position of the scroll box.
isVertical
boolIndicates whether scroll bar is vertical or horizontal.
SetScrollPos(AbstractControl, bool, int, bool)
public static void SetScrollPos(AbstractControl control, bool flat, int pos, bool isVertical)
Parameters
control
AbstractControlflat
boolpos
intisVertical
bool