 | 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.2+f55916d49ef2baa43fc7dc8f5c7d751a77c50baf
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