Class Colors
- Namespace
- CSF.Screenplay.Selenium
- Assembly
- CSF.Screenplay.Selenium.dll
Static type containing the pre-defined colors for the web.
public static class Colors
- Inheritance
-
Colors
- Inherited Members
Remarks
Each static property of this type corresponds to a well-known pre-defined color, according to the W3C HTML4 spec.
Alternatively, to get a Color instance which matches a string which names a color (case insensitive) use either TryGetNamedColor(string, out Color) or GetNamedColor(string).
Properties
ALICEBLUE
public static Color ALICEBLUE { get; }
Property Value
ANTIQUEWHITE
public static Color ANTIQUEWHITE { get; }
Property Value
AQUA
public static Color AQUA { get; }
Property Value
AQUAMARINE
public static Color AQUAMARINE { get; }
Property Value
AZURE
public static Color AZURE { get; }
Property Value
BEIGE
public static Color BEIGE { get; }
Property Value
BISQUE
public static Color BISQUE { get; }
Property Value
BLACK
public static Color BLACK { get; }
Property Value
BLANCHEDALMOND
public static Color BLANCHEDALMOND { get; }
Property Value
BLUE
public static Color BLUE { get; }
Property Value
BLUEVIOLET
public static Color BLUEVIOLET { get; }
Property Value
BROWN
public static Color BROWN { get; }
Property Value
BURLYWOOD
public static Color BURLYWOOD { get; }
Property Value
CADETBLUE
public static Color CADETBLUE { get; }
Property Value
CHARTREUSE
public static Color CHARTREUSE { get; }
Property Value
CHOCOLATE
public static Color CHOCOLATE { get; }
Property Value
CORAL
public static Color CORAL { get; }
Property Value
CORNFLOWERBLUE
public static Color CORNFLOWERBLUE { get; }
Property Value
CORNSILK
public static Color CORNSILK { get; }
Property Value
CRIMSON
public static Color CRIMSON { get; }
Property Value
CYAN
public static Color CYAN { get; }
Property Value
DARKBLUE
public static Color DARKBLUE { get; }
Property Value
DARKCYAN
public static Color DARKCYAN { get; }
Property Value
DARKGOLDENROD
public static Color DARKGOLDENROD { get; }
Property Value
DARKGRAY
public static Color DARKGRAY { get; }
Property Value
DARKGREEN
public static Color DARKGREEN { get; }
Property Value
DARKGREY
public static Color DARKGREY { get; }
Property Value
DARKKHAKI
public static Color DARKKHAKI { get; }
Property Value
DARKMAGENTA
public static Color DARKMAGENTA { get; }
Property Value
DARKOLIVEGREEN
public static Color DARKOLIVEGREEN { get; }
Property Value
DARKORANGE
public static Color DARKORANGE { get; }
Property Value
DARKORCHID
public static Color DARKORCHID { get; }
Property Value
DARKRED
public static Color DARKRED { get; }
Property Value
DARKSALMON
public static Color DARKSALMON { get; }
Property Value
DARKSEAGREEN
public static Color DARKSEAGREEN { get; }
Property Value
DARKSLATEBLUE
public static Color DARKSLATEBLUE { get; }
Property Value
DARKSLATEGRAY
public static Color DARKSLATEGRAY { get; }
Property Value
DARKSLATEGREY
public static Color DARKSLATEGREY { get; }
Property Value
DARKTURQUOISE
public static Color DARKTURQUOISE { get; }
Property Value
DARKVIOLET
public static Color DARKVIOLET { get; }
Property Value
DEEPPINK
public static Color DEEPPINK { get; }
Property Value
DEEPSKYBLUE
public static Color DEEPSKYBLUE { get; }
Property Value
DIMGRAY
public static Color DIMGRAY { get; }
Property Value
DIMGREY
public static Color DIMGREY { get; }
Property Value
DODGERBLUE
public static Color DODGERBLUE { get; }
Property Value
FIREBRICK
public static Color FIREBRICK { get; }
Property Value
FLORALWHITE
public static Color FLORALWHITE { get; }
Property Value
FORESTGREEN
public static Color FORESTGREEN { get; }
Property Value
FUCHSIA
public static Color FUCHSIA { get; }
Property Value
GAINSBORO
public static Color GAINSBORO { get; }
Property Value
GHOSTWHITE
public static Color GHOSTWHITE { get; }
Property Value
GOLD
public static Color GOLD { get; }
Property Value
GOLDENROD
public static Color GOLDENROD { get; }
Property Value
GRAY
public static Color GRAY { get; }
Property Value
GREEN
public static Color GREEN { get; }
Property Value
GREENYELLOW
public static Color GREENYELLOW { get; }
Property Value
GREY
public static Color GREY { get; }
Property Value
HONEYDEW
public static Color HONEYDEW { get; }
Property Value
HOTPINK
public static Color HOTPINK { get; }
Property Value
INDIANRED
public static Color INDIANRED { get; }
Property Value
INDIGO
public static Color INDIGO { get; }
Property Value
IVORY
public static Color IVORY { get; }
Property Value
KHAKI
public static Color KHAKI { get; }
Property Value
LAVENDER
public static Color LAVENDER { get; }
Property Value
LAVENDERBLUSH
public static Color LAVENDERBLUSH { get; }
Property Value
LAWNGREEN
public static Color LAWNGREEN { get; }
Property Value
LEMONCHIFFON
public static Color LEMONCHIFFON { get; }
Property Value
LIGHTBLUE
public static Color LIGHTBLUE { get; }
Property Value
LIGHTCORAL
public static Color LIGHTCORAL { get; }
Property Value
LIGHTCYAN
public static Color LIGHTCYAN { get; }
Property Value
LIGHTGOLDENRODYELLOW
public static Color LIGHTGOLDENRODYELLOW { get; }
Property Value
LIGHTGRAY
public static Color LIGHTGRAY { get; }
Property Value
LIGHTGREEN
public static Color LIGHTGREEN { get; }
Property Value
LIGHTGREY
public static Color LIGHTGREY { get; }
Property Value
LIGHTPINK
public static Color LIGHTPINK { get; }
Property Value
LIGHTSALMON
public static Color LIGHTSALMON { get; }
Property Value
LIGHTSEAGREEN
public static Color LIGHTSEAGREEN { get; }
Property Value
LIGHTSKYBLUE
public static Color LIGHTSKYBLUE { get; }
Property Value
LIGHTSLATEGRAY
public static Color LIGHTSLATEGRAY { get; }
Property Value
LIGHTSLATEGREY
public static Color LIGHTSLATEGREY { get; }
Property Value
LIGHTSTEELBLUE
public static Color LIGHTSTEELBLUE { get; }
Property Value
LIGHTYELLOW
public static Color LIGHTYELLOW { get; }
Property Value
LIME
public static Color LIME { get; }
Property Value
LIMEGREEN
public static Color LIMEGREEN { get; }
Property Value
LINEN
public static Color LINEN { get; }
Property Value
MAGENTA
public static Color MAGENTA { get; }
Property Value
MAROON
public static Color MAROON { get; }
Property Value
MEDIUMAQUAMARINE
public static Color MEDIUMAQUAMARINE { get; }
Property Value
MEDIUMBLUE
public static Color MEDIUMBLUE { get; }
Property Value
MEDIUMORCHID
public static Color MEDIUMORCHID { get; }
Property Value
MEDIUMPURPLE
public static Color MEDIUMPURPLE { get; }
Property Value
MEDIUMSEAGREEN
public static Color MEDIUMSEAGREEN { get; }
Property Value
MEDIUMSLATEBLUE
public static Color MEDIUMSLATEBLUE { get; }
Property Value
MEDIUMSPRINGGREEN
public static Color MEDIUMSPRINGGREEN { get; }
Property Value
MEDIUMTURQUOISE
public static Color MEDIUMTURQUOISE { get; }
Property Value
MEDIUMVIOLETRED
public static Color MEDIUMVIOLETRED { get; }
Property Value
MIDNIGHTBLUE
public static Color MIDNIGHTBLUE { get; }
Property Value
MINTCREAM
public static Color MINTCREAM { get; }
Property Value
MISTYROSE
public static Color MISTYROSE { get; }
Property Value
MOCCASIN
public static Color MOCCASIN { get; }
Property Value
NAVAJOWHITE
public static Color NAVAJOWHITE { get; }
Property Value
NAVY
public static Color NAVY { get; }
Property Value
OLDLACE
public static Color OLDLACE { get; }
Property Value
OLIVE
public static Color OLIVE { get; }
Property Value
OLIVEDRAB
public static Color OLIVEDRAB { get; }
Property Value
ORANGE
public static Color ORANGE { get; }
Property Value
ORANGERED
public static Color ORANGERED { get; }
Property Value
ORCHID
public static Color ORCHID { get; }
Property Value
PALEGOLDENROD
public static Color PALEGOLDENROD { get; }
Property Value
PALEGREEN
public static Color PALEGREEN { get; }
Property Value
PALETURQUOISE
public static Color PALETURQUOISE { get; }
Property Value
PALEVIOLETRED
public static Color PALEVIOLETRED { get; }
Property Value
PAPAYAWHIP
public static Color PAPAYAWHIP { get; }
Property Value
PEACHPUFF
public static Color PEACHPUFF { get; }
Property Value
PERU
public static Color PERU { get; }
Property Value
PINK
public static Color PINK { get; }
Property Value
PLUM
public static Color PLUM { get; }
Property Value
POWDERBLUE
public static Color POWDERBLUE { get; }
Property Value
PURPLE
public static Color PURPLE { get; }
Property Value
REBECCAPURPLE
public static Color REBECCAPURPLE { get; }
Property Value
RED
public static Color RED { get; }
Property Value
ROSYBROWN
public static Color ROSYBROWN { get; }
Property Value
ROYALBLUE
public static Color ROYALBLUE { get; }
Property Value
SADDLEBROWN
public static Color SADDLEBROWN { get; }
Property Value
SALMON
public static Color SALMON { get; }
Property Value
SANDYBROWN
public static Color SANDYBROWN { get; }
Property Value
SEAGREEN
public static Color SEAGREEN { get; }
Property Value
SEASHELL
public static Color SEASHELL { get; }
Property Value
SIENNA
public static Color SIENNA { get; }
Property Value
SILVER
public static Color SILVER { get; }
Property Value
SKYBLUE
public static Color SKYBLUE { get; }
Property Value
SLATEBLUE
public static Color SLATEBLUE { get; }
Property Value
SLATEGRAY
public static Color SLATEGRAY { get; }
Property Value
SLATEGREY
public static Color SLATEGREY { get; }
Property Value
SNOW
public static Color SNOW { get; }
Property Value
SPRINGGREEN
public static Color SPRINGGREEN { get; }
Property Value
STEELBLUE
public static Color STEELBLUE { get; }
Property Value
TAN
public static Color TAN { get; }
Property Value
TEAL
public static Color TEAL { get; }
Property Value
THISTLE
public static Color THISTLE { get; }
Property Value
TOMATO
public static Color TOMATO { get; }
Property Value
TRANSPARENT
public static Color TRANSPARENT { get; }
Property Value
TURQUOISE
public static Color TURQUOISE { get; }
Property Value
VIOLET
public static Color VIOLET { get; }
Property Value
WHEAT
public static Color WHEAT { get; }
Property Value
WHITE
public static Color WHITE { get; }
Property Value
WHITESMOKE
public static Color WHITESMOKE { get; }
Property Value
YELLOW
public static Color YELLOW { get; }
Property Value
YELLOWGREEN
public static Color YELLOWGREEN { get; }
Property Value
Methods
GetNamedColor(string)
Gets a Color instance which matches the specified color-name.
public static Color GetNamedColor(string colorName)
Parameters
colorNamestringA named color (case insensitive)
Returns
Remarks
This method will throw an exception if colorName does not correspond to a well-known color
name. This is a case-insensitive match.
If you are uncertain whether the colorName is a well-known color name or not then consider
TryGetNamedColor(string, out Color) instead.
Exceptions
- ArgumentNullException
If
colorNameis null- ArgumentException
If
colorNamedoes not correspond to a well-known named color
TryGetNamedColor(string, out Color)
Gets a value indicating whether colorName is a well-known color name.
Exposes a Color instance which corresponds to that name if it is.
public static bool TryGetNamedColor(string colorName, out Color color)
Parameters
colorNamestringA string which might correspond to a well-known color name.
colorColorIf this method returns true then this is a Color which corresponds to the color indicated by
colorName; if it returns false then this value is undefined and must be ignored.
Returns
Remarks
This method will never throw an exception for any value of colorName.
Note that match with a well-known color name is performed in a case-insensitive manner.