Click or drag to resize

ExtendedFormUseSystemFont Property

Gets or sets a value that indicates whether or not the form automatically uses the system default font.

Namespace:  Ookii.Dialogs
Assembly:  Ookii.Dialogs (in Ookii.Dialogs.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public bool UseSystemFont { get; set; }

Property Value

Type: Boolean
when the form's font is automatically adjusted to the system font; otherwise, . The default value is .
Remarks

This property has no effect at design time; the font settings will only be applied at run time.

When this property is set to , the form will use the configured system font and font size automatically, e.g. it will use Segoe UI on Windows Vista and Tahoma on Windows XP. Please make sure the AutoScaleMode property is set to Font to account for the different metrics of the various fonts, and make special provisions to scale graphics and other element. Note that the system font can also be smaller than the font you used at design time, causing the form to be scaled down. For example the font MS Gothic UI, used on Japanese versions of Windows (pre-Vista), has smaller metrics than MS Sans Serif.

Note Note
It is strongly recommended to test your application with different font and DPI settings if you set this property to .
See Also