Click or drag to resize
NanoXLSX

BasicStylesColorizedText Method

Gets a style to colorize the text of a cell

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

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