 | StyleFillValidateColor Method |
Validates the passed string, whether it is a valid RGB value that can be used for Fills or Fonts
Namespace: PicoXLSXAssembly: PicoXLSX (in PicoXLSX.dll) Version: 3.4.3+c820fb107cc06ae187946bad43db42d71f6faf1c
Syntaxpublic 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