 | BasicStylesColorizedText Method |
Gets a style to colorize the text of a cell
Namespace: NanoXLSX.StylesAssembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.4+e304ab0274fa680d1e83f83c8f76c3bd5a54caf2
Syntaxpublic static Style ColorizedText(
string rgb
)
Parameters
- rgb String
- RGB code in hex format (6 characters, e.g. FF00AC). Alpha will be set to full opacity (FF)
Return Value
StyleStyle with font color definition
ExceptionsException | Condition |
---|
StyleException | A StyleException is thrown if an invalid hex value is passed |
See Also