C# Class Groves.UI.ColorHelpers

Color helpers
显示文件 Open project: tomzorz/Groves

Public Methods

Method Description
FromHex ( string s ) : Color

Creates a color from a hex value

FromName ( string s ) : Color

Create a Color from a Colors.XXX name

Method Details

FromHex() public static method

Creates a color from a hex value
public static FromHex ( string s ) : Color
s string Hey value in #RRGGBB or #AARRGGBB format
return Color

FromName() public static method

Create a Color from a Colors.XXX name
Invalid color identifier.
public static FromName ( string s ) : Color
s string name of color
return Color