How to

get predefined colors

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

In WPF

using System.Windows.Media;
Color color = Colors.Chocolate;

In Winforms

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



Related Snippets: