string CSSRGBColor (string htmlColor)
 
Convert the given HTML/CSS color to a hex encoded CSS color. Useful for converting named colors such as green to their hex equivalents.
Exceptions:
OutOfMemoryException
Thrown when a low memory situation occurs.
Parameters:
htmlColor
The HTML color.
Returns:
Hex encoded CSS color as string.
Convert green to the hex equivalent.
<xsl:variable name="VarGreenAsRGB" select="wwunits:CSSRGBColor('green')" />
Was this helpful?
Last modified date: 10/14/2020