Click or drag to resize
PicoXLSX

StyleFillValidateColor Method

Validates the passed string, whether it is a valid RGB value that can be used for Fills or Fonts

Namespace: PicoXLSX
Assembly: PicoXLSX (in PicoXLSX.dll) Version: 3.4.5+6ab75fa9edd66571b0de8e574b48108101297ca1
Syntax
C#
public static void ValidateColor(
	string hexCode,
	bool useAlpha,
	bool allowEmpty = false
)

Parameters

hexCode  String
Hex string to check.
useAlpha  Boolean
If true, two additional characters (total 8) are expected as alpha value.
allowEmpty  Boolean  (Optional)
Optional parameter that allows null or empty as valid values.
See Also