How to

get system colors

Published: 24. October 2011 | Updated: 24. October 2011
License: Microsoft Public License (MS-PL)
Categories: Windows
Tags: C# Colors Windows Winforms WPF
Was this snippet helpful for you? YESYES / NONO

In WPF

using System.Windows;
using System.Windows.Media;
Color color = SystemColors.HighlightTextColor;

In Winforms

using System.Drawing;
Color color = SystemColors.HighlightText;
Send us feedback about this snippet »



Related Snippets: