xtd 0.2.0
Loading...
Searching...
No Matches

◆ dialog_font()

static xtd::drawing::font xtd::drawing::system_fonts::dialog_font ( )
static

Gets a xtd::drawing::font that applications can use for dialog boxes and forms.

Returns
A xtd::drawing::font that can be used for dialog boxes and forms, depending on the operating system and local culture setting of the system.
Remarks
If the operating system is Windows 2000 or Windows XP, the xtd::drawing::system_fonts::dialog_font property returns Tahoma, 8 point. Otherwise, xtd::drawing::system_fonts::dialog_font returns the value of the xtd::drawing::system_fonts::default_font property. The xtd::drawing::font returned by xtd::drawing::system_fonts::dialog_font does not change when the user is in High Contrast mode. For a font that changes when the user is in High Contrast mode use another system font such as xtd::drawing::system_fonts::icon_title_font.