SystemInformation::GetBorderSizeForDpi Method (Int32)

 

Gets the thickness, in pixels, of a flat-style window or system control border for a given DPI value.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
static Size GetBorderSizeForDpi(
	int dpi
)

Parameters

dpi
Type: System::Int32

The DPI value for the current display device.

Return Value

Type: System.Drawing::Size

A Size that indicates the width, in pixels, of a vertical border, and the height, in pixels, of a horizontal border.

.NET Framework
Available since 4.7
Return to top
Show: