Class ColorStrings
Provides a mapping between Color and the W3C standard color name strings.
public static class ColorStrings
- Inheritance
-
ColorStrings
- Inherited Members
Methods
- GetANSIColor16Name(Color)
Gets the ANSI 4-bit (16) color name for
color
.
- GetColorName(Color)
Gets backwards compatible color name for
color
.
- GetW3CColorName(Color)
Gets the W3C standard string for
color
.
- GetW3CColorNames()
Returns the list of W3C standard color names.
- TryParseColor16(ReadOnlySpan<char>, out Color)
Parses
name
and returnscolor
if name is a ANSI 4-bit standard named color.
- TryParseNamedColor(ReadOnlySpan<char>, out Color)
Parses
name
and returnscolor
if name is either ANSI 4-bit or W3C standard named color.
- TryParseW3CColorName(ReadOnlySpan<char>, out Color)
Parses
name
and returnscolor
if name is a W3C standard named color.