Convert a Color value to an HTML-style colour.

Syntax

ISColourUtilities.ColorToHtml(colour, [neverReturnNamedColour])

Parameters

NameTypeOptionalByRefDescription
colour Color The System.Drawing.Color value.
neverReturnNamedColour Boolean Optional Indicates whether to avoid returning HTML Named Colours, e.g., never return "Red", instead, return "#FF0000". If omitted, a value of False is assumed.

Return Value

String

A String value.

Member of:
ISColourUtilities
Namespace:
Intersoft.ISRuntime6
Assembly:
ISRuntime6, Version=6.0.3
Target Framework:
.NET 9.0