Table of Contents

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

Color

ANTIQUEWHITE

public static Color ANTIQUEWHITE { get; }

Property Value

Color

AQUA

public static Color AQUA { get; }

Property Value

Color

AQUAMARINE

public static Color AQUAMARINE { get; }

Property Value

Color

AZURE

public static Color AZURE { get; }

Property Value

Color

BEIGE

public static Color BEIGE { get; }

Property Value

Color

BISQUE

public static Color BISQUE { get; }

Property Value

Color

BLACK

public static Color BLACK { get; }

Property Value

Color

BLANCHEDALMOND

public static Color BLANCHEDALMOND { get; }

Property Value

Color

BLUE

public static Color BLUE { get; }

Property Value

Color

BLUEVIOLET

public static Color BLUEVIOLET { get; }

Property Value

Color

BROWN

public static Color BROWN { get; }

Property Value

Color

BURLYWOOD

public static Color BURLYWOOD { get; }

Property Value

Color

CADETBLUE

public static Color CADETBLUE { get; }

Property Value

Color

CHARTREUSE

public static Color CHARTREUSE { get; }

Property Value

Color

CHOCOLATE

public static Color CHOCOLATE { get; }

Property Value

Color

CORAL

public static Color CORAL { get; }

Property Value

Color

CORNFLOWERBLUE

public static Color CORNFLOWERBLUE { get; }

Property Value

Color

CORNSILK

public static Color CORNSILK { get; }

Property Value

Color

CRIMSON

public static Color CRIMSON { get; }

Property Value

Color

CYAN

public static Color CYAN { get; }

Property Value

Color

DARKBLUE

public static Color DARKBLUE { get; }

Property Value

Color

DARKCYAN

public static Color DARKCYAN { get; }

Property Value

Color

DARKGOLDENROD

public static Color DARKGOLDENROD { get; }

Property Value

Color

DARKGRAY

public static Color DARKGRAY { get; }

Property Value

Color

DARKGREEN

public static Color DARKGREEN { get; }

Property Value

Color

DARKGREY

public static Color DARKGREY { get; }

Property Value

Color

DARKKHAKI

public static Color DARKKHAKI { get; }

Property Value

Color

DARKMAGENTA

public static Color DARKMAGENTA { get; }

Property Value

Color

DARKOLIVEGREEN

public static Color DARKOLIVEGREEN { get; }

Property Value

Color

DARKORANGE

public static Color DARKORANGE { get; }

Property Value

Color

DARKORCHID

public static Color DARKORCHID { get; }

Property Value

Color

DARKRED

public static Color DARKRED { get; }

Property Value

Color

DARKSALMON

public static Color DARKSALMON { get; }

Property Value

Color

DARKSEAGREEN

public static Color DARKSEAGREEN { get; }

Property Value

Color

DARKSLATEBLUE

public static Color DARKSLATEBLUE { get; }

Property Value

Color

DARKSLATEGRAY

public static Color DARKSLATEGRAY { get; }

Property Value

Color

DARKSLATEGREY

public static Color DARKSLATEGREY { get; }

Property Value

Color

DARKTURQUOISE

public static Color DARKTURQUOISE { get; }

Property Value

Color

DARKVIOLET

public static Color DARKVIOLET { get; }

Property Value

Color

DEEPPINK

public static Color DEEPPINK { get; }

Property Value

Color

DEEPSKYBLUE

public static Color DEEPSKYBLUE { get; }

Property Value

Color

DIMGRAY

public static Color DIMGRAY { get; }

Property Value

Color

DIMGREY

public static Color DIMGREY { get; }

Property Value

Color

DODGERBLUE

public static Color DODGERBLUE { get; }

Property Value

Color

FIREBRICK

public static Color FIREBRICK { get; }

Property Value

Color

FLORALWHITE

public static Color FLORALWHITE { get; }

Property Value

Color

FORESTGREEN

public static Color FORESTGREEN { get; }

Property Value

Color

FUCHSIA

public static Color FUCHSIA { get; }

Property Value

Color

GAINSBORO

public static Color GAINSBORO { get; }

Property Value

Color

GHOSTWHITE

public static Color GHOSTWHITE { get; }

Property Value

Color

GOLD

public static Color GOLD { get; }

Property Value

Color

GOLDENROD

public static Color GOLDENROD { get; }

Property Value

Color

GRAY

public static Color GRAY { get; }

Property Value

Color

GREEN

public static Color GREEN { get; }

Property Value

Color

GREENYELLOW

public static Color GREENYELLOW { get; }

Property Value

Color

GREY

public static Color GREY { get; }

Property Value

Color

HONEYDEW

public static Color HONEYDEW { get; }

Property Value

Color

HOTPINK

public static Color HOTPINK { get; }

Property Value

Color

INDIANRED

public static Color INDIANRED { get; }

Property Value

Color

INDIGO

public static Color INDIGO { get; }

Property Value

Color

IVORY

public static Color IVORY { get; }

Property Value

Color

KHAKI

public static Color KHAKI { get; }

Property Value

Color

LAVENDER

public static Color LAVENDER { get; }

Property Value

Color

LAVENDERBLUSH

public static Color LAVENDERBLUSH { get; }

Property Value

Color

LAWNGREEN

public static Color LAWNGREEN { get; }

Property Value

Color

LEMONCHIFFON

public static Color LEMONCHIFFON { get; }

Property Value

Color

LIGHTBLUE

public static Color LIGHTBLUE { get; }

Property Value

Color

LIGHTCORAL

public static Color LIGHTCORAL { get; }

Property Value

Color

LIGHTCYAN

public static Color LIGHTCYAN { get; }

Property Value

Color

LIGHTGOLDENRODYELLOW

public static Color LIGHTGOLDENRODYELLOW { get; }

Property Value

Color

LIGHTGRAY

public static Color LIGHTGRAY { get; }

Property Value

Color

LIGHTGREEN

public static Color LIGHTGREEN { get; }

Property Value

Color

LIGHTGREY

public static Color LIGHTGREY { get; }

Property Value

Color

LIGHTPINK

public static Color LIGHTPINK { get; }

Property Value

Color

LIGHTSALMON

public static Color LIGHTSALMON { get; }

Property Value

Color

LIGHTSEAGREEN

public static Color LIGHTSEAGREEN { get; }

Property Value

Color

LIGHTSKYBLUE

public static Color LIGHTSKYBLUE { get; }

Property Value

Color

LIGHTSLATEGRAY

public static Color LIGHTSLATEGRAY { get; }

Property Value

Color

LIGHTSLATEGREY

public static Color LIGHTSLATEGREY { get; }

Property Value

Color

LIGHTSTEELBLUE

public static Color LIGHTSTEELBLUE { get; }

Property Value

Color

LIGHTYELLOW

public static Color LIGHTYELLOW { get; }

Property Value

Color

LIME

public static Color LIME { get; }

Property Value

Color

LIMEGREEN

public static Color LIMEGREEN { get; }

Property Value

Color

LINEN

public static Color LINEN { get; }

Property Value

Color

MAGENTA

public static Color MAGENTA { get; }

Property Value

Color

MAROON

public static Color MAROON { get; }

Property Value

Color

MEDIUMAQUAMARINE

public static Color MEDIUMAQUAMARINE { get; }

Property Value

Color

MEDIUMBLUE

public static Color MEDIUMBLUE { get; }

Property Value

Color

MEDIUMORCHID

public static Color MEDIUMORCHID { get; }

Property Value

Color

MEDIUMPURPLE

public static Color MEDIUMPURPLE { get; }

Property Value

Color

MEDIUMSEAGREEN

public static Color MEDIUMSEAGREEN { get; }

Property Value

Color

MEDIUMSLATEBLUE

public static Color MEDIUMSLATEBLUE { get; }

Property Value

Color

MEDIUMSPRINGGREEN

public static Color MEDIUMSPRINGGREEN { get; }

Property Value

Color

MEDIUMTURQUOISE

public static Color MEDIUMTURQUOISE { get; }

Property Value

Color

MEDIUMVIOLETRED

public static Color MEDIUMVIOLETRED { get; }

Property Value

Color

MIDNIGHTBLUE

public static Color MIDNIGHTBLUE { get; }

Property Value

Color

MINTCREAM

public static Color MINTCREAM { get; }

Property Value

Color

MISTYROSE

public static Color MISTYROSE { get; }

Property Value

Color

MOCCASIN

public static Color MOCCASIN { get; }

Property Value

Color

NAVAJOWHITE

public static Color NAVAJOWHITE { get; }

Property Value

Color

NAVY

public static Color NAVY { get; }

Property Value

Color

OLDLACE

public static Color OLDLACE { get; }

Property Value

Color

OLIVE

public static Color OLIVE { get; }

Property Value

Color

OLIVEDRAB

public static Color OLIVEDRAB { get; }

Property Value

Color

ORANGE

public static Color ORANGE { get; }

Property Value

Color

ORANGERED

public static Color ORANGERED { get; }

Property Value

Color

ORCHID

public static Color ORCHID { get; }

Property Value

Color

PALEGOLDENROD

public static Color PALEGOLDENROD { get; }

Property Value

Color

PALEGREEN

public static Color PALEGREEN { get; }

Property Value

Color

PALETURQUOISE

public static Color PALETURQUOISE { get; }

Property Value

Color

PALEVIOLETRED

public static Color PALEVIOLETRED { get; }

Property Value

Color

PAPAYAWHIP

public static Color PAPAYAWHIP { get; }

Property Value

Color

PEACHPUFF

public static Color PEACHPUFF { get; }

Property Value

Color

PERU

public static Color PERU { get; }

Property Value

Color

PINK

public static Color PINK { get; }

Property Value

Color

PLUM

public static Color PLUM { get; }

Property Value

Color

POWDERBLUE

public static Color POWDERBLUE { get; }

Property Value

Color

PURPLE

public static Color PURPLE { get; }

Property Value

Color

REBECCAPURPLE

public static Color REBECCAPURPLE { get; }

Property Value

Color

RED

public static Color RED { get; }

Property Value

Color

ROSYBROWN

public static Color ROSYBROWN { get; }

Property Value

Color

ROYALBLUE

public static Color ROYALBLUE { get; }

Property Value

Color

SADDLEBROWN

public static Color SADDLEBROWN { get; }

Property Value

Color

SALMON

public static Color SALMON { get; }

Property Value

Color

SANDYBROWN

public static Color SANDYBROWN { get; }

Property Value

Color

SEAGREEN

public static Color SEAGREEN { get; }

Property Value

Color

SEASHELL

public static Color SEASHELL { get; }

Property Value

Color

SIENNA

public static Color SIENNA { get; }

Property Value

Color

SILVER

public static Color SILVER { get; }

Property Value

Color

SKYBLUE

public static Color SKYBLUE { get; }

Property Value

Color

SLATEBLUE

public static Color SLATEBLUE { get; }

Property Value

Color

SLATEGRAY

public static Color SLATEGRAY { get; }

Property Value

Color

SLATEGREY

public static Color SLATEGREY { get; }

Property Value

Color

SNOW

public static Color SNOW { get; }

Property Value

Color

SPRINGGREEN

public static Color SPRINGGREEN { get; }

Property Value

Color

STEELBLUE

public static Color STEELBLUE { get; }

Property Value

Color

TAN

public static Color TAN { get; }

Property Value

Color

TEAL

public static Color TEAL { get; }

Property Value

Color

THISTLE

public static Color THISTLE { get; }

Property Value

Color

TOMATO

public static Color TOMATO { get; }

Property Value

Color

TRANSPARENT

public static Color TRANSPARENT { get; }

Property Value

Color

TURQUOISE

public static Color TURQUOISE { get; }

Property Value

Color

VIOLET

public static Color VIOLET { get; }

Property Value

Color

WHEAT

public static Color WHEAT { get; }

Property Value

Color

WHITE

public static Color WHITE { get; }

Property Value

Color

WHITESMOKE

public static Color WHITESMOKE { get; }

Property Value

Color

YELLOW

public static Color YELLOW { get; }

Property Value

Color

YELLOWGREEN

public static Color YELLOWGREEN { get; }

Property Value

Color

Methods

GetNamedColor(string)

Gets a Color instance which matches the specified color-name.

public static Color GetNamedColor(string colorName)

Parameters

colorName string

A named color (case insensitive)

Returns

Color

A Color which corresponds to the specified named color.

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 colorName is null

ArgumentException

If colorName does 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

colorName string

A string which might correspond to a well-known color name.

color Color

If 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

bool

true if colorName is a well-known color name; false if not.

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.