Click or drag to resize
NanoXLSX

BasicStylesColorizedBackground Method

Gets a style to colorize the background of a cell

Namespace: NanoXLSX.Styles
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.7+b0ed5f8a99a50b9e6528224889fbd7f23c30b364
Syntax
C#
public 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

Style
Style with background color definition
Exceptions
ExceptionCondition
StyleExceptionA StyleException is thrown if an invalid hex value is passed
See Also