Declaration
function ColorToHex(Color : TColor): string;
Description
Returns a hex representation of a TColor (e.g. for use in HTML).
If ConvertNone=True, clNone will return "none"
sHex := ColorToHex( clWhite ); // Would return "#FFFFFF"
sHex := ColorToHex( clNone, True ); // Would return "none"
See Also
◼HexToColorDef