Method GetScrollPos
GetScrollPos(Control, bool, bool)
Retrieves the current position of the scroll box (thumb) in the specified scroll bar.
public static int GetScrollPos(Control control, bool flat, bool isVertical)
Parameters
controlControlA scroll bar control or a window with a standard scroll bar.
flatboolIndicates whether scroll bar is flat.
isVerticalboolIndicates whether scroll bar is vertical or horizontal.
Returns
- int
If the function succeeds, the return value is the current position of the scroll box; otherwise zero.
GetScrollPos(AbstractControl, bool, bool)
public static int GetScrollPos(AbstractControl control, bool flat, bool isVertical)
Parameters
controlAbstractControlflatboolisVerticalbool