WindowsFormsSettings.DefaultMenuFont Property
Gets and sets the default font used to display text on menus, toolbars and popup menus (except Ribbon elements). This is a static property.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.Utils.v24.1.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
#Declaration
#Property Value
Type | Description |
---|---|
Font | A Font object which is the default font for menu items. If not set, the property value is specified by the System. |
#Remarks
The static DefaultMenuFont property specifies the global font setting for menu items. These include:
- items in bars and sub-menus maintained by the BarManager component.
- items in classic popup menus (PopupMenu) and radial menus (RadialMenu).
- items in built-in context menus in DevExpess controls (e.g., GridControl, TreeList, etc.).
If the DefaultMenuFont property is not set, the default font is specified by the SystemInformation.MenuFont property.
Specific controls allow you to customize the font of their menus via dedicated properties, and so override the global default font. For instance, the Bar.BarAppearance property (accessible from the DefaultBarAndDockingController and BarAndDockingController objects) provides access to the bar appearance settings in different visual states.