| 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.2.1+e0edc719a6aeecf6c989e5a57750c75d6f3175bb
Syntax 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