SystemInformation.GetBorderSizeForDpi(Int32) SystemInformation.GetBorderSizeForDpi(Int32) SystemInformation.GetBorderSizeForDpi(Int32) SystemInformation.GetBorderSizeForDpi(Int32) Method

定义

获取给定 DPI 值的平面样式窗口边框或系统控件边框的粗细(以像素为单位)。Gets the thickness, in pixels, of a flat-style window or system control border for a given DPI value.

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 Int32 Int32 Int32

当前显示设备的 DPI 值。The DPI value for the current display device.

返回

Size,指示垂直边框的宽度(以像素为单位)和水平边框的高度(以像素为单位)。A Size that indicates the width, in pixels, of a vertical border, and the height, in pixels, of a horizontal border.

适用于