Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WindowsFormsSettings.GetAccentColor() Method

Returns a custom accent color.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.2.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