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+3a069966d2787c42b695e5043a5e083b247634e3
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