WindowsFormsSettings.FontBehavior Property
Gets or sets the behavior specifying fonts used by DevExpress and standard .NET controls. This is a static property. Setting this property modifies the WindowsFormsSettings.DefaultFont property.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.Utils.v24.1.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
#Declaration
#Property Value
Type | Description |
---|---|
DevExpress. |
A DevExpress. |
#Remarks
Use the FontBehavior
property to specify the fonts used by DevExpress and standard .NET controls.
When this property is set to any value except WindowsFormsFontBehavior.Default
, a corresponding font is automatically assigned to the WindowsFormsSettings.DefaultFont property. The WindowsFormsFontBehavior
enumeration provides the following modes.
Value | Description |
---|---|
Default | DevExpress controls use the Windows |
Use |
DevExpress controls use the Tahoma font of the default system font size (System |
Use |
DevExpress controls use the System. |
Use |
DevExpress controls use the System. |
Use |
DevExpress controls use the “Segoe UI” font. |
Force |
Forces standard .NET and DevExpress controls to use the Tahoma font of the default system font size (System |
Force |
Forces standard .NET and DevExpress controls to use the System. |
Force |
Forces standard .NET and DevExpress controls to use the “Segoe UI” font. |
Note
You can also specify fonts for controls using the application settings architecture. This allows you to separate application settings from the application code and provide consistency between design and run time. See the Windows