Table of Contents

Method GetScrollSize

Namespace
Alternet.Common
Assembly
Alternet.Common.Winforms.v10.dll

GetScrollSize(Control, bool, bool)

Retrieves the page size of the scroll box (thumb) in the specified scroll bar.

public static int GetScrollSize(Control control, bool flat, bool isVertical)

Parameters

control Control

A scroll bar control or a window with a standard scroll bar.

flat bool

Indicates whether scroll bar is flat.

isVertical bool

Indicates whether scroll bar is vertical or horizontal.

Returns

int

If the function succeeds, the return value is the page size of the scroll box; otherwise zero.

GetScrollSize(bool)

Retrieves dimension of the arrow bitmap of a scroll bar, in pixels.

public static int GetScrollSize(bool isVertical)

Parameters

isVertical bool

Indicates whether scroll bar is vertical.

Returns

int

Dimension of the arrow bitmap.

GetScrollSize(AbstractControl, bool, bool)

public static int GetScrollSize(AbstractControl control, bool flat, bool isVertical)

Parameters

control AbstractControl
flat bool
isVertical bool

Returns

int