SystemInformation.GetVerticalScrollBarWidthForDpi(Int32) Method

Definition

Gets the default height, in pixels, of the vertical scroll bar for a given DPI value.

C#
public static int GetVerticalScrollBarWidthForDpi(int dpi);

Parameters

dpi
Int32

The DPI value for the current display device.

Returns

The default height, in pixels, of the vertical scroll bar.

Applies to

Product Versions
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9