Color


Summary

Represents an ARGB (alpha, red, green, blue) color.

Syntax

public sealed class Color : Object

Members

NameTypeSummary
A PropertyGets the alpha component value of the color.
AliceBlue PropertyGets a system-defined color that has an ARGB value of #FFF0F8FF.
AntiqueWhite PropertyGets a system-defined color that has an ARGB value of #FFFAEBD7.
Aqua PropertyGets a system-defined color that has an ARGB value of #FF00FFFF.
Aquamarine PropertyGets a system-defined color that has an ARGB value of #FF7FFFD4.
Azure PropertyGets a system-defined color that has an ARGB value of #FFF0FFFF.
B PropertyGets the blue component value of the color.
Beige PropertyGets a system-defined color that has an ARGB value of #FFF5F5DC.
Bisque PropertyGets a system-defined color that has an ARGB value of #FFFFE4C4.
Black PropertyGets a system-defined color that has an ARGB value of #FF000000.
BlanchedAlmond PropertyGets a system-defined color that has an ARGB value of #FFFFEBCD.
Blue PropertyGets a system-defined color that has an ARGB value of #FF0000FF.
BlueViolet PropertyGets a system-defined color that has an ARGB value of #FF8A2BE2.
Brown PropertyGets a system-defined color that has an ARGB value of #FFA52A2A.
BurlyWood PropertyGets a system-defined color that has an ARGB value of #FFDEB887.
CadetBlue PropertyGets a system-defined color that has an ARGB value of #FF5F9EA0.
Chartreuse PropertyGets a system-defined color that has an ARGB value of #FF7FFF00.
Chocolate PropertyGets a system-defined color that has an ARGB value of #FFD2691E.
Coral PropertyGets a system-defined color that has an ARGB value of #FFFF7F50.
CornflowerBlue PropertyGets a system-defined color that has an ARGB value of #FF6495ED.
Cornsilk PropertyGets a system-defined color that has an ARGB value of #FFFFF8DC.
Crimson PropertyGets a system-defined color that has an ARGB value of #FFDC143C.
Cyan PropertyGets a system-defined color that has an ARGB value of #FF00FFFF.
DarkBlue PropertyGets a system-defined color that has an ARGB value of #FF00008B.
DarkCyan PropertyGets a system-defined color that has an ARGB value of #FF008B8B.
DarkGoldenrod PropertyGets a system-defined color that has an ARGB value of #FFB8860B.
DarkGray PropertyGets a system-defined color that has an ARGB value of #FFA9A9A9.
DarkGreen PropertyGets a system-defined color that has an ARGB value of #FF006400.
DarkKhaki PropertyGets a system-defined color that has an ARGB value of #FFBDB76B.
DarkMagenta PropertyGets a system-defined color that has an ARGB value of #FF8B008B.
DarkOliveGreen PropertyGets a system-defined color that has an ARGB value of #FF556B2F.
DarkOrange PropertyGets a system-defined color that has an ARGB value of #FFFF8C00.
DarkOrchid PropertyGets a system-defined color that has an ARGB value of #FF9932CC.
DarkRed PropertyGets a system-defined color that has an ARGB value of #FF8B0000.
DarkSalmon PropertyGets a system-defined color that has an ARGB value of #FFE9967A.
DarkSeaGreen PropertyGets a system-defined color that has an ARGB value of #FF8FBC8F.
DarkSlateBlue PropertyGets a system-defined color that has an ARGB value of #FF483D8B.
DarkSlateGray PropertyGets a system-defined color that has an ARGB value of #FF2F4F4F.
DarkTurquoise PropertyGets a system-defined color that has an ARGB value of #FF00CED1.
DarkViolet PropertyGets a system-defined color that has an ARGB value of #FF9400D3.
DeepPink PropertyGets a system-defined color that has an ARGB value of #FFFF1493.
DeepSkyBlue PropertyGets a system-defined color that has an ARGB value of #FF00BFFF.
DimGray PropertyGets a system-defined color that has an ARGB value of #FF696969.
DodgerBlue PropertyGets a system-defined color that has an ARGB value of #FF1E90FF.
Empty FieldRepresents empty color.
Equals MethodDefines whether the specified object is equal to this instance.
Firebrick PropertyGets a system-defined color that has an ARGB value of #FFB22222.
FloralWhite PropertyGets a system-defined color that has an ARGB value of #FFFFFAF0.
ForestGreen PropertyGets a system-defined color that has an ARGB value of #FF228B22.
FromArgb MethodCreates a color from alpha, red, green and blue components.
FromHex MethodAttempts to convert a hex string to a Color.
FromName MethodCreates a color from the specified name of a predefined color.
Fuchsia PropertyGets a system-defined color that has an ARGB value of #FFFF00FF.
G PropertyGets the green component value of the color.
Gainsboro PropertyGets a system-defined color that has an ARGB value of #FFDCDCDC.
GetHashCode Method
GhostWhite PropertyGets a system-defined color that has an ARGB value of #FFF8F8FF.
Gold PropertyGets a system-defined color that has an ARGB value of #FFFFD700.
Goldenrod PropertyGets a system-defined color that has an ARGB value of #FFDAA520.
Gray PropertyGets a system-defined color that has an ARGB value of #FF808080.
Green PropertyGets a system-defined color that has an ARGB value of #FF008000.
GreenYellow PropertyGets a system-defined color that has an ARGB value of #FFADFF2F.
Honeydew PropertyGets a system-defined color that has an ARGB value of #FFF0FFF0.
HotPink PropertyGets a system-defined color that has an ARGB value of #FFFF69B4.
IndianRed PropertyGets a system-defined color that has an ARGB value of #FFCD5C5C.
Indigo PropertyGets a system-defined color that has an ARGB value of #FF4B0082.
Ivory PropertyGets a system-defined color that has an ARGB value of #FFFFFFF0.
Khaki PropertyGets a system-defined color that has an ARGB value of #FFF0E68C.
Lavender PropertyGets a system-defined color that has an ARGB value of #FFE6E6FA.
LavenderBlush PropertyGets a system-defined color that has an ARGB value of #FFFFF0F5.
LawnGreen PropertyGets a system-defined color that has an ARGB value of #FF7CFC00.
LemonChiffon PropertyGets a system-defined color that has an ARGB value of #FFFFFACD.
LightBlue PropertyGets a system-defined color that has an ARGB value of #FFADD8E6.
LightCoral PropertyGets a system-defined color that has an ARGB value of #FFF08080.
LightCyan PropertyGets a system-defined color that has an ARGB value of #FFE0FFFF.
LightGoldenrodYellow PropertyGets a system-defined color that has an ARGB value of #FFFAFAD2.
LightGray PropertyGets a system-defined color that has an ARGB value of #FFD3D3D3.
LightGreen PropertyGets a system-defined color that has an ARGB value of #FF90EE90.
LightPink PropertyGets a system-defined color that has an ARGB value of #FFFFB6C1.
LightSalmon PropertyGets a system-defined color that has an ARGB value of #FFFFA07A.
LightSeaGreen PropertyGets a system-defined color that has an ARGB value of #FF20B2AA.
LightSkyBlue PropertyGets a system-defined color that has an ARGB value of #FF87CEFA.
LightSlateGray PropertyGets a system-defined color that has an ARGB value of #FF778899.
LightSteelBlue PropertyGets a system-defined color that has an ARGB value of #FFB0C4DE.
LightYellow PropertyGets a system-defined color that has an ARGB value of #FFFFFFE0.
Lime PropertyGets a system-defined color that has an ARGB value of #FF00FF00.
LimeGreen PropertyGets a system-defined color that has an ARGB value of #FF32CD32.
Linen PropertyGets a system-defined color that has an ARGB value of #FFFAF0E6.
Magenta PropertyGets a system-defined color that has an ARGB value of #FFFF00FF.
Maroon PropertyGets a system-defined color that has an ARGB value of #FF800000.
MediumAquamarine PropertyGets a system-defined color that has an ARGB value of #FF66CDAA.
MediumBlue PropertyGets a system-defined color that has an ARGB value of #FF0000CD.
MediumOrchid PropertyGets a system-defined color that has an ARGB value of #FFBA55D3.
MediumPurple PropertyGets a system-defined color that has an ARGB value of #FF9370DB.
MediumSeaGreen PropertyGets a system-defined color that has an ARGB value of #FF3CB371.
MediumSlateBlue PropertyGets a system-defined color that has an ARGB value of #FF7B68EE.
MediumSpringGreen PropertyGets a system-defined color that has an ARGB value of #FF00FA9A.
MediumTurquoise PropertyGets a system-defined color that has an ARGB value of #FF48D1CC.
MediumVioletRed PropertyGets a system-defined color that has an ARGB value of #FFC71585
MidnightBlue PropertyGets a system-defined color that has an ARGB value of #FF191970.
MintCream PropertyGets a system-defined color that has an ARGB value of #FFF5FFFA.
MistyRose PropertyGets a system-defined color that has an ARGB value of #FFFFE4E1.
Moccasin PropertyGets a system-defined color that has an ARGB value of #FFFFE4B5.
NavajoWhite PropertyGets a system-defined color that has an ARGB value of #FFFFDEAD.
Navy PropertyGets a system-defined color that has an ARGB value of #FF000080.
OldLace PropertyGets a system-defined color that has an ARGB value of #FFFDF5E6.
Olive PropertyGets a system-defined color that has an ARGB value of #FF808000.
OliveDrab PropertyGets a system-defined color that has an ARGB value of #FF6B8E23.
Orange PropertyGets a system-defined color that has an ARGB value of #FFFFA500.
OrangeRed PropertyGets a system-defined color that has an ARGB value of #FFFF4500.
Orchid PropertyGets a system-defined color that has an ARGB value of #FFDA70D6.
PaleGoldenrod PropertyGets a system-defined color that has an ARGB value of #FFEEE8AA.
PaleGreen PropertyGets a system-defined color that has an ARGB value of #FF98FB98.
PaleTurquoise PropertyGets a system-defined color that has an ARGB value of #FFAFEEEE.
PaleVioletRed PropertyGets a system-defined color that has an ARGB value of #FFDB7093.
PapayaWhip PropertyGets a system-defined color that has an ARGB value of #FFFFEFD5.
PeachPuff PropertyGets a system-defined color that has an ARGB value of #FFFFDAB9.
Peru PropertyGets a system-defined color that has an ARGB value of #FFCD853F.
Pink PropertyGets a system-defined color that has an ARGB value of #FFFFC0CB.
Plum PropertyGets a system-defined color that has an ARGB value of #FFDDA0DD.
PowderBlue PropertyGets a system-defined color that has an ARGB value of #FFB0E0E6.
Purple PropertyGets a system-defined color that has an ARGB value of #FF800080.
R PropertyGets the red component value of the color.
Red PropertyGets a system-defined color that has an ARGB value of #FFFF0000.
RosyBrown PropertyGets a system-defined color that has an ARGB value of #FFBC8F8F.
RoyalBlue PropertyGets a system-defined color that has an ARGB value of #FF4169E1.
SaddleBrown PropertyGets a system-defined color that has an ARGB value of #FF8B4513.
Salmon PropertyGets a system-defined color that has an ARGB value of #FFFA8072.
SandyBrown PropertyGets a system-defined color that has an ARGB value of #FFF4A460.
SeaGreen PropertyGets a system-defined color that has an ARGB value of #FF2E8B57.
SeaShell PropertyGets a system-defined color that has an ARGB value of #FFFFF5EE.
Sienna PropertyGets a system-defined color that has an ARGB value of #FFA0522D.
Silver PropertyGets a system-defined color that has an ARGB value of #FFC0C0C0.
SkyBlue PropertyGets a system-defined color that has an ARGB value of #FF87CEEB.
SlateBlue PropertyGets a system-defined color that has an ARGB value of #FF6A5ACD.
SlateGray PropertyGets a system-defined color that has an ARGB value of #FF708090.
Snow PropertyGets a system-defined color that has an ARGB value of #FFFFFAFA.
SpringGreen PropertyGets a system-defined color that has an ARGB value of #FF00FF7F.
SteelBlue PropertyGets a system-defined color that has an ARGB value of #FF4682B4.
Tan PropertyGets a system-defined color that has an ARGB value of #FFD2B48C.
Teal PropertyGets a system-defined color that has an ARGB value of #FF008080.
Thistle PropertyGets a system-defined color that has an ARGB value of #FFD8BFD8.
ToArgb MethodGet the 32-bit ARGB color value.
ToHexString MethodGet the hex string representation of the color.
Tomato PropertyGets a system-defined color that has an ARGB value of #FFFF6347.
ToString MethodReturns a String that represents this instance.
Transparent PropertyGets a system-defined color that has an ARGB value of #00FFFFFF.
Turquoise PropertyGets a system-defined color that has an ARGB value of #FF40E0D0.
Violet PropertyGets a system-defined color that has an ARGB value of #FFEE82EE.
Wheat PropertyGets a system-defined color that has an ARGB value of #FFF5DEB3.
White PropertyGets a system-defined color that has an ARGB value of #FFFFFFFF.
WhiteSmoke PropertyGets a system-defined color that has an ARGB value of #FFF5F5F5.
Yellow PropertyGets a system-defined color that has an ARGB value of #FFFFFF00.
YellowGreen PropertyGets a system-defined color that has an ARGB value of #FF9ACD32.

Example 1

var blueColor = Color.Blue;
var greenColor = Color.FromArgb(0, 0, 255, 0);