Sitecore 5.1.1 API

MainUtil.HexToColor Method 

[Visual Basic]
Public Shared Function HexToColor( _
   ByVal hexString As String _
) As Color
[C#]
public static Color HexToColor(
   string hexString
);

Remarks

Translates a html hexadecimal definition of a color into a .NET Framework Color. The input string must start with a '#' character and be followed by 6 hexadecimal digits. The digits A-F are not case sensitive. If the conversion was not successfull the color white will be returned.

See Also

MainUtil Class | Sitecore Namespace