|
NanoXLSX.Core 3.0.0-rc.3
|
Class providing general validator methods. More...
Static Public Member Functions | |
| static void | ValidateColor (string hexCode, bool useAlpha, bool allowEmpty=false) |
| Validates the passed string, whether it is a valid RGB or ARGB value that can be used for Fills or Fonts. | |
Class providing general validator methods.
Definition at line 10 of file Validators.cs.
|
static |
Validates the passed string, whether it is a valid RGB or ARGB value that can be used for Fills or Fonts.
| StyleException | A StyleException is thrown if an invalid hex value is passed |
| hexCode | Hex string to check |
| useAlpha | If true, two additional characters (total 8) are expected as alpha value |
| allowEmpty | Optional parameter that allows null or empty as valid values |
Definition at line 25 of file Validators.cs.