语言

SystemInformation.GetBorderSizeForDpi(Int32) 方法

定义

获取给定 DPI 值的平面样式窗口或系统控制边框的粗细(以像素为单位)。

public:
 static System::Drawing::Size GetBorderSizeForDpi(int dpi);
public static System.Drawing.Size GetBorderSizeForDpi(int dpi);
static member GetBorderSizeForDpi : int -> System.Drawing.Size
Public Shared Function GetBorderSizeForDpi (dpi As Integer) As Size

参数

dpi
Int32

当前显示设备的 DPI 值。

返回

指示 Size 垂直边框的宽度(以像素为单位),以及水平边框的高度(以像素为单位)。

适用于