ARCed.Scintilla.Utilities.ColorToHtml C# (CSharp) Method

ColorToHtml() public static method

Returns an HTML #XXXXXX format for a color. Unlike the ColorTranslator class it never returns named colors.
public static ColorToHtml ( Color c ) : string
c Color
return string
        public static string ColorToHtml(Color c)
        {
            return "#" + c.R.ToString("X2", null) + c.G.ToString("X2", null) + c.B.ToString("X2", null);
        }