Skip to main content
All docs
V24.1

WindowsFormsSettings.GetAccentColor() Method

Returns a custom accent color.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.1.dll

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

Declaration

public static Color GetAccentColor()

Returns

Type Description
Color

The accent color.

Remarks

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();

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