SystemInformation.GetMenuFontForDpi(Int32) Method

Definition

Gets the font used to display text on menus for use in changing the DPI for a given display device.

C#
public static System.Drawing.Font GetMenuFontForDpi(int dpi);

Parameters

dpi
Int32

The DPI value for the current display device.

Returns

The Font used to display text on menus.

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, 10