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.2.dll
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.Windows.Forms.SystemInformation.MenuFont property. |
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.