Class W3CColors
Helper class that resolves w3c color names to their hex values Based on https://www.w3schools.com/colors/color_tryit.asp
public class W3CColors : IColorNameResolver
- Inheritance
-
W3CColors
- Implements
- Inherited Members
Methods
- GetColorNames()
Returns the names of all known colors.
- TryNameColor(Color, out string)
Returns true if
color
is a recognized color. In which casename
will be the name of the color and return value will be true otherwise false.
- TryParseColor(string, out Color)
Returns true if
name
is a recognized color. In which casecolor
will be the color the name corresponds to otherwise returns false.