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
.
- GetStandardColorName(Color)
Gets the W3C+ standard string for
color
.
- GetStandardColorNames()
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.
- TryParseStandardColorName(ReadOnlySpan<char>, out Color)
Parses
name
and returnscolor
if name is a W3C+ standard named color.