Back to Devexpress

WindowsFormsSettings.FontIconsStyle Property

windowsforms-devexpress-dot-xtraeditors-dot-windowsformssettings-b09a7c36.md

latest3.1 KB
Original Source

WindowsFormsSettings.FontIconsStyle Property

Gets or sets the default icon font style.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public static FontIconsStyle FontIconsStyle { get; set; }
vb
Public Shared Property FontIconsStyle As FontIconsStyle

Property Value

TypeDescription
DevExpress.Utils.FontIconsStyle

The icon form style.

|

Remarks

The DevExpress Image Picker displays icons from the most recent icon font (FontIconsStyle.Latest). For example, the font “Segoe Fluent Icons” is used as the default font if fonts “Segoe Fluent Icons” and “Segoe MDL2 Assets” are available on the system.

Use the WindowsFormsSettings.FontIconsStyle setting to specify the default icon font as needed:

csharp
using System;
using System.Windows.Forms;
using DevExpress.Utils;
using DevExpress.XtraEditors;

namespace DXApplication39 {
    internal static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            WindowsFormsSettings.FontIconsStyle = FontIconsStyle.Win10;
            Application.Run(new Form1());
        }
    }
}
vb
Imports System
Imports System.Windows.Forms
Imports DevExpress.Utils
Imports DevExpress.XtraEditors

Namespace DXApplication39
    Friend Module Program
        ''' <summary>
        ''' The main entry point for the application.
        ''' </summary>
        <STAThread>
        Sub Main()
            Application.EnableVisualStyles()
            Application.SetCompatibleTextRenderingDefault(False)
            WindowsFormsSettings.FontIconsStyle = FontIconsStyle.Win10
            Application.Run(New Form1())
        End Sub
    End Module
End Namespace

Read the following topic for additional information: Font Icon Images.

See Also

Font Icon Images

WindowsFormsSettings Class

WindowsFormsSettings Members

DevExpress.XtraEditors Namespace