Method FromHex
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
FromHex(string)
Parses a CSS-style hex colour.
public static PdfColor FromHex(string hex)
Parameters
hexstringSix hex digits, with or without a leading
#, such as#3B82F6.
Returns
Exceptions
- FormatException
The text is not six hex digits.