windowsforms-devexpress-dot-xtraeditors-dot-windowsformssettings-dc8bb891.md
Returns a custom accent color.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
public static Color GetAccentColor()
Public Shared Function GetAccentColor As Color
| Type | Description |
|---|---|
| Color |
The accent color.
|
Use the SetAccentColor and SetAccentColor2 methods to specify custom accent colors.
If the TrackWindowsAccentColor option is enabled and a custom accent color is specified, the custom accent color takes priority over the system accent color.
The following example demonstrates how to obtain the system accent color:
using System.Drawing;
using DevExpress.Utils.Drawing.Helpers;
Color systemAccentColor = NativeMethods.GetWindowsAccentColor();
Imports System.Drawing
Imports DevExpress.Utils.Drawing.Helpers
Private systemAccentColor As Color = NativeMethods.GetWindowsAccentColor()
Note
“The Bezier” skin supports the second accent color. Other skins do not support the second accent color.
Use the SetAccentColor2 method to specify the second accent color.
See Also