 | BasicStylesColorizedBackground Method |
Gets a style to colorize the background of a cell
Namespace: NanoXLSX.StylesAssembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.3+98f265239ae8df4639650ecd7029244cc5e52dfc
Syntaxpublic static Style ColorizedBackground(
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 background color definition
ExceptionsException | Condition |
---|
StyleException | A StyleException is thrown if an invalid hex value is passed |
See Also