Struct Color
Represents an ARGB (alpha, red, green, blue) color.
Inherited Members
Namespace: System.Drawing
Assembly: System.Drawing.dll
Syntax
public struct Color
Properties
| Improve this Doc View SourceA
Gets the alpha component value of this System.Drawing.Color structure.
Declaration
public readonly byte A { get; }
Property Value
Type | Description |
---|---|
Byte |
AliceBlue
Gets a system-defined color that has an ARGB value of #FFF0F8FF.
Declaration
public static readonly Color AliceBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
AntiqueWhite
Gets a system-defined color that has an ARGB value of #FFFAEBD7.
Declaration
public static readonly Color AntiqueWhite { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Aqua
Gets a system-defined color that has an ARGB value of #FF00FFFF.
Declaration
public static readonly Color Aqua { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Aquamarine
Gets a system-defined color that has an ARGB value of #FF7FFFD4.
Declaration
public static readonly Color Aquamarine { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Azure
Gets a system-defined color that has an ARGB value of #FFF0FFFF.
Declaration
public static readonly Color Azure { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
B
Gets the blue component value of this System.Drawing.Color structure.
Declaration
public readonly byte B { get; }
Property Value
Type | Description |
---|---|
Byte |
Beige
Gets a system-defined color that has an ARGB value of #FFF5F5DC.
Declaration
public static readonly Color Beige { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Bisque
Gets a system-defined color that has an ARGB value of #FFFFE4C4.
Declaration
public static readonly Color Bisque { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Black
Gets a system-defined color that has an ARGB value of #FF000000.
Declaration
public static readonly Color Black { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
BlanchedAlmond
Gets a system-defined color that has an ARGB value of #FFFFEBCD.
Declaration
public static readonly Color BlanchedAlmond { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Blue
Gets a system-defined color that has an ARGB value of #FF0000FF.
Declaration
public static readonly Color Blue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
BlueViolet
Gets a system-defined color that has an ARGB value of #FF8A2BE2.
Declaration
public static readonly Color BlueViolet { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Brown
Gets a system-defined color that has an ARGB value of #FFA52A2A.
Declaration
public static readonly Color Brown { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
BurlyWood
Gets a system-defined color that has an ARGB value of #FFDEB887.
Declaration
public static readonly Color BurlyWood { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
CadetBlue
Gets a system-defined color that has an ARGB value of #FF5F9EA0.
Declaration
public static readonly Color CadetBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Chartreuse
Gets a system-defined color that has an ARGB value of #FF7FFF00.
Declaration
public static readonly Color Chartreuse { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Chocolate
Gets a system-defined color that has an ARGB value of #FFD2691E.
Declaration
public static readonly Color Chocolate { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Coral
Gets a system-defined color that has an ARGB value of #FFFF7F50.
Declaration
public static readonly Color Coral { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
CornflowerBlue
Gets a system-defined color that has an ARGB value of #FF6495ED.
Declaration
public static readonly Color CornflowerBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Cornsilk
Gets a system-defined color that has an ARGB value of #FFFFF8DC.
Declaration
public static readonly Color Cornsilk { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Crimson
Gets a system-defined color that has an ARGB value of #FFDC143C.
Declaration
public static readonly Color Crimson { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Cyan
Gets a system-defined color that has an ARGB value of #FF00FFFF.
Declaration
public static readonly Color Cyan { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkBlue
Gets a system-defined color that has an ARGB value of #FF00008B.
Declaration
public static readonly Color DarkBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkCyan
Gets a system-defined color that has an ARGB value of #FF008B8B.
Declaration
public static readonly Color DarkCyan { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkGoldenrod
Gets a system-defined color that has an ARGB value of #FFB8860B.
Declaration
public static readonly Color DarkGoldenrod { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkGray
Gets a system-defined color that has an ARGB value of #FFA9A9A9.
Declaration
public static readonly Color DarkGray { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkGreen
Gets a system-defined color that has an ARGB value of #FF006400.
Declaration
public static readonly Color DarkGreen { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkKhaki
Gets a system-defined color that has an ARGB value of #FFBDB76B.
Declaration
public static readonly Color DarkKhaki { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkMagenta
Gets a system-defined color that has an ARGB value of #FF8B008B.
Declaration
public static readonly Color DarkMagenta { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkOliveGreen
Gets a system-defined color that has an ARGB value of #FF556B2F.
Declaration
public static readonly Color DarkOliveGreen { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkOrange
Gets a system-defined color that has an ARGB value of #FFFF8C00.
Declaration
public static readonly Color DarkOrange { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkOrchid
Gets a system-defined color that has an ARGB value of #FF9932CC.
Declaration
public static readonly Color DarkOrchid { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkRed
Gets a system-defined color that has an ARGB value of #FF8B0000.
Declaration
public static readonly Color DarkRed { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkSalmon
Gets a system-defined color that has an ARGB value of #FFE9967A.
Declaration
public static readonly Color DarkSalmon { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkSeaGreen
Gets a system-defined color that has an ARGB value of #FF8FBC8B.
Declaration
public static readonly Color DarkSeaGreen { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkSlateBlue
Gets a system-defined color that has an ARGB value of #FF483D8B.
Declaration
public static readonly Color DarkSlateBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkSlateGray
Gets a system-defined color that has an ARGB value of #FF2F4F4F.
Declaration
public static readonly Color DarkSlateGray { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkTurquoise
Gets a system-defined color that has an ARGB value of #FF00CED1.
Declaration
public static readonly Color DarkTurquoise { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DarkViolet
Gets a system-defined color that has an ARGB value of #FF9400D3.
Declaration
public static readonly Color DarkViolet { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DeepPink
Gets a system-defined color that has an ARGB value of #FFFF1493.
Declaration
public static readonly Color DeepPink { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DeepSkyBlue
Gets a system-defined color that has an ARGB value of #FF00BFFF.
Declaration
public static readonly Color DeepSkyBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DimGray
Gets a system-defined color that has an ARGB value of #FF696969.
Declaration
public static readonly Color DimGray { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
DodgerBlue
Gets a system-defined color that has an ARGB value of #FF1E90FF.
Declaration
public static readonly Color DodgerBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Firebrick
Gets a system-defined color that has an ARGB value of #FFB22222.
Declaration
public static readonly Color Firebrick { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
FloralWhite
Gets a system-defined color that has an ARGB value of #FFFFFAF0.
Declaration
public static readonly Color FloralWhite { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
ForestGreen
Gets a system-defined color that has an ARGB value of #FF228B22.
Declaration
public static readonly Color ForestGreen { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Fuchsia
Gets a system-defined color that has an ARGB value of #FFFF00FF.
Declaration
public static readonly Color Fuchsia { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
G
Gets the green component value of this System.Drawing.Color structure.
Declaration
public readonly byte G { get; }
Property Value
Type | Description |
---|---|
Byte |
Gainsboro
Gets a system-defined color that has an ARGB value of #FFDCDCDC.
Declaration
public static readonly Color Gainsboro { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
GhostWhite
Gets a system-defined color that has an ARGB value of #FFF8F8FF.
Declaration
public static readonly Color GhostWhite { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Gold
Gets a system-defined color that has an ARGB value of #FFFFD700.
Declaration
public static readonly Color Gold { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Goldenrod
Gets a system-defined color that has an ARGB value of #FFDAA520.
Declaration
public static readonly Color Goldenrod { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Gray
Gets a system-defined color that has an ARGB value of #FF808080.
Declaration
public static readonly Color Gray { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color structure representing a system-defined color. |
Green
Gets a system-defined color that has an ARGB value of #FF008000.
Declaration
public static readonly Color Green { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
GreenYellow
Gets a system-defined color that has an ARGB value of #FFADFF2F.
Declaration
public static readonly Color GreenYellow { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Honeydew
Gets a system-defined color that has an ARGB value of #FFF0FFF0.
Declaration
public static readonly Color Honeydew { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
HotPink
Gets a system-defined color that has an ARGB value of #FFFF69B4.
Declaration
public static readonly Color HotPink { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
IndianRed
Gets a system-defined color that has an ARGB value of #FFCD5C5C.
Declaration
public static readonly Color IndianRed { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Indigo
Gets a system-defined color that has an ARGB value of #FF4B0082.
Declaration
public static readonly Color Indigo { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Ivory
Gets a system-defined color that has an ARGB value of #FFFFFFF0.
Declaration
public static readonly Color Ivory { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Khaki
Gets a system-defined color that has an ARGB value of #FFF0E68C.
Declaration
public static readonly Color Khaki { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Lavender
Gets a system-defined color that has an ARGB value of #FFE6E6FA.
Declaration
public static readonly Color Lavender { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LavenderBlush
Gets a system-defined color that has an ARGB value of #FFFFF0F5.
Declaration
public static readonly Color LavenderBlush { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LawnGreen
Gets a system-defined color that has an ARGB value of #FF7CFC00.
Declaration
public static readonly Color LawnGreen { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LemonChiffon
Gets a system-defined color that has an ARGB value of #FFFFFACD.
Declaration
public static readonly Color LemonChiffon { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LightBlue
Gets a system-defined color that has an ARGB value of #FFADD8E6.
Declaration
public static readonly Color LightBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LightCoral
Gets a system-defined color that has an ARGB value of #FFF08080.
Declaration
public static readonly Color LightCoral { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LightCyan
Gets a system-defined color that has an ARGB value of #FFE0FFFF.
Declaration
public static readonly Color LightCyan { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LightGoldenrodYellow
Gets a system-defined color that has an ARGB value of #FFFAFAD2.
Declaration
public static readonly Color LightGoldenrodYellow { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LightGray
Gets a system-defined color that has an ARGB value of #FFD3D3D3.
Declaration
public static readonly Color LightGray { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LightGreen
Gets a system-defined color that has an ARGB value of #FF90EE90.
Declaration
public static readonly Color LightGreen { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LightPink
Gets a system-defined color that has an ARGB value of #FFFFB6C1.
Declaration
public static readonly Color LightPink { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LightSalmon
Gets a system-defined color that has an ARGB value of #FFFFA07A.
Declaration
public static readonly Color LightSalmon { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LightSeaGreen
Gets a system-defined color that has an ARGB value of #FF20B2AA.
Declaration
public static readonly Color LightSeaGreen { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LightSkyBlue
Gets a system-defined color that has an ARGB value of #FF87CEFA.
Declaration
public static readonly Color LightSkyBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LightSlateGray
Gets a system-defined color that has an ARGB value of #FF778899.
Declaration
public static readonly Color LightSlateGray { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LightSteelBlue
Gets a system-defined color that has an ARGB value of #FFB0C4DE.
Declaration
public static readonly Color LightSteelBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LightYellow
Gets a system-defined color that has an ARGB value of #FFFFFFE0.
Declaration
public static readonly Color LightYellow { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Lime
Gets a system-defined color that has an ARGB value of #FF00FF00.
Declaration
public static readonly Color Lime { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
LimeGreen
Gets a system-defined color that has an ARGB value of #FF32CD32.
Declaration
public static readonly Color LimeGreen { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Linen
Gets a system-defined color that has an ARGB value of #FFFAF0E6.
Declaration
public static readonly Color Linen { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Magenta
Gets a system-defined color that has an ARGB value of #FFFF00FF.
Declaration
public static readonly Color Magenta { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Maroon
Gets a system-defined color that has an ARGB value of #FF800000.
Declaration
public static readonly Color Maroon { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
MediumAquamarine
Gets a system-defined color that has an ARGB value of #FF66CDAA.
Declaration
public static readonly Color MediumAquamarine { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
MediumBlue
Gets a system-defined color that has an ARGB value of #FF0000CD.
Declaration
public static readonly Color MediumBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
MediumOrchid
Gets a system-defined color that has an ARGB value of #FFBA55D3.
Declaration
public static readonly Color MediumOrchid { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
MediumPurple
Gets a system-defined color that has an ARGB value of #FF9370DB.
Declaration
public static readonly Color MediumPurple { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
MediumSeaGreen
Gets a system-defined color that has an ARGB value of #FF3CB371.
Declaration
public static readonly Color MediumSeaGreen { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
MediumSlateBlue
Gets a system-defined color that has an ARGB value of #FF7B68EE.
Declaration
public static readonly Color MediumSlateBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
MediumSpringGreen
Gets a system-defined color that has an ARGB value of #FF00FA9A.
Declaration
public static readonly Color MediumSpringGreen { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
MediumTurquoise
Gets a system-defined color that has an ARGB value of #FF48D1CC.
Declaration
public static readonly Color MediumTurquoise { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
MediumVioletRed
Gets a system-defined color that has an ARGB value of #FFC71585.
Declaration
public static readonly Color MediumVioletRed { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
MidnightBlue
Gets a system-defined color that has an ARGB value of #FF191970.
Declaration
public static readonly Color MidnightBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
MintCream
Gets a system-defined color that has an ARGB value of #FFF5FFFA.
Declaration
public static readonly Color MintCream { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
MistyRose
Gets a system-defined color that has an ARGB value of #FFFFE4E1.
Declaration
public static readonly Color MistyRose { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Moccasin
Gets a system-defined color that has an ARGB value of #FFFFE4B5.
Declaration
public static readonly Color Moccasin { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
NavajoWhite
Gets a system-defined color that has an ARGB value of #FFFFDEAD.
Declaration
public static readonly Color NavajoWhite { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Navy
Gets a system-defined color that has an ARGB value of #FF000080.
Declaration
public static readonly Color Navy { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
OldLace
Gets a system-defined color that has an ARGB value of #FFFDF5E6.
Declaration
public static readonly Color OldLace { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Olive
Gets a system-defined color that has an ARGB value of #FF808000.
Declaration
public static readonly Color Olive { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
OliveDrab
Gets a system-defined color that has an ARGB value of #FF6B8E23.
Declaration
public static readonly Color OliveDrab { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Orange
Gets a system-defined color that has an ARGB value of #FFFFA500.
Declaration
public static readonly Color Orange { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
OrangeRed
Gets a system-defined color that has an ARGB value of #FFFF4500.
Declaration
public static readonly Color OrangeRed { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Orchid
Gets a system-defined color that has an ARGB value of #FFDA70D6.
Declaration
public static readonly Color Orchid { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
PaleGoldenrod
Gets a system-defined color that has an ARGB value of #FFEEE8AA.
Declaration
public static readonly Color PaleGoldenrod { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
PaleGreen
Gets a system-defined color that has an ARGB value of #FF98FB98.
Declaration
public static readonly Color PaleGreen { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
PaleTurquoise
Gets a system-defined color that has an ARGB value of #FFAFEEEE.
Declaration
public static readonly Color PaleTurquoise { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
PaleVioletRed
Gets a system-defined color that has an ARGB value of #FFDB7093.
Declaration
public static readonly Color PaleVioletRed { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
PapayaWhip
Gets a system-defined color that has an ARGB value of #FFFFEFD5.
Declaration
public static readonly Color PapayaWhip { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
PeachPuff
Gets a system-defined color that has an ARGB value of #FFFFDAB9.
Declaration
public static readonly Color PeachPuff { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Peru
Gets a system-defined color that has an ARGB value of #FFCD853F.
Declaration
public static readonly Color Peru { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Pink
Gets a system-defined color that has an ARGB value of #FFFFC0CB.
Declaration
public static readonly Color Pink { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Plum
Gets a system-defined color that has an ARGB value of #FFDDA0DD.
Declaration
public static readonly Color Plum { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
PowderBlue
Gets a system-defined color that has an ARGB value of #FFB0E0E6.
Declaration
public static readonly Color PowderBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Purple
Gets a system-defined color that has an ARGB value of #FF800080.
Declaration
public static readonly Color Purple { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
R
Gets the red component value of this System.Drawing.Color structure.
Declaration
public readonly byte R { get; }
Property Value
Type | Description |
---|---|
Byte |
Red
Gets a system-defined color that has an ARGB value of #FFFF0000.
Declaration
public static readonly Color Red { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
RosyBrown
Gets a system-defined color that has an ARGB value of #FFBC8F8F.
Declaration
public static readonly Color RosyBrown { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
RoyalBlue
Gets a system-defined color that has an ARGB value of #FF4169E1.
Declaration
public static readonly Color RoyalBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
SaddleBrown
Gets a system-defined color that has an ARGB value of #FF8B4513.
Declaration
public static readonly Color SaddleBrown { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Salmon
Gets a system-defined color that has an ARGB value of #FFFA8072.
Declaration
public static readonly Color Salmon { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
SandyBrown
Gets a system-defined color that has an ARGB value of #FFF4A460.
Declaration
public static readonly Color SandyBrown { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
SeaGreen
Gets a system-defined color that has an ARGB value of #FF2E8B57.
Declaration
public static readonly Color SeaGreen { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
SeaShell
Gets a system-defined color that has an ARGB value of #FFFFF5EE.
Declaration
public static readonly Color SeaShell { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Sienna
Gets a system-defined color that has an ARGB value of #FFA0522D.
Declaration
public static readonly Color Sienna { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Silver
Gets a system-defined color that has an ARGB value of #FFC0C0C0.
Declaration
public static readonly Color Silver { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
SkyBlue
Gets a system-defined color that has an ARGB value of #FF87CEEB.
Declaration
public static readonly Color SkyBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
SlateBlue
Gets a system-defined color that has an ARGB value of #FF6A5ACD.
Declaration
public static readonly Color SlateBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
SlateGray
Gets a system-defined color that has an ARGB value of #FF708090.
Declaration
public static readonly Color SlateGray { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Snow
Gets a system-defined color that has an ARGB value of #FFFFFAFA.
Declaration
public static readonly Color Snow { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
SpringGreen
Gets a system-defined color that has an ARGB value of #FF00FF7F.
Declaration
public static readonly Color SpringGreen { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
SteelBlue
Gets a system-defined color that has an ARGB value of #FF4682B4.
Declaration
public static readonly Color SteelBlue { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Tan
Gets a system-defined color that has an ARGB value of #FFD2B48C.
Declaration
public static readonly Color Tan { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Teal
Gets a system-defined color that has an ARGB value of #FF008080.
Declaration
public static readonly Color Teal { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Thistle
Gets a system-defined color that has an ARGB value of #FFD8BFD8.
Declaration
public static readonly Color Thistle { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Tomato
Gets a system-defined color that has an ARGB value of #FFFF6347.
Declaration
public static readonly Color Tomato { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Transparent
Gets a system-defined color.
Declaration
public static readonly Color Transparent { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Turquoise
Gets a system-defined color that has an ARGB value of #FF40E0D0.
Declaration
public static readonly Color Turquoise { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Violet
Gets a system-defined color that has an ARGB value of #FFEE82EE.
Declaration
public static readonly Color Violet { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Wheat
Gets a system-defined color that has an ARGB value of #FFF5DEB3.
Declaration
public static readonly Color Wheat { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
White
Gets a system-defined color that has an ARGB value of #FFFFFFFF.
Declaration
public static readonly Color White { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
WhiteSmoke
Gets a system-defined color that has an ARGB value of #FFF5F5F5.
Declaration
public static readonly Color WhiteSmoke { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Yellow
Gets a system-defined color that has an ARGB value of #FFFFFF00.
Declaration
public static readonly Color Yellow { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
YellowGreen
Gets a system-defined color that has an ARGB value of #FF9ACD32.
Declaration
public static readonly Color YellowGreen { get; }
Property Value
Type | Description |
---|---|
Color | A System.Drawing.Color representing a system-defined color. |
Methods
| Improve this Doc View SourceEquals(Color)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(Color other)
Parameters
Type | Name | Description |
---|---|---|
Color | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
Boolean | true if the current object is equal to other; otherwise, false. |
FromArgb(Int32)
Creates a System.Drawing.Color structure from a 32-bit ARGB value.
Declaration
public static Color FromArgb(int argb)
Parameters
Type | Name | Description |
---|---|---|
Int32 | argb | A value specifying the 32-bit ARGB value. |
Returns
Type | Description |
---|---|
Color | The System.Drawing.Color structure that this method creates. |
FromArgb(Int32, Color)
Creates a System.Drawing.Color structure from the specified System.Drawing.Color structure, but with the new specified alpha value. Although this method allows a 32-bit value to be passed for the alpha value, the value is limited to 8 bits.
Declaration
public static Color FromArgb(int alpha, Color baseColor)
Parameters
Type | Name | Description |
---|---|---|
Int32 | alpha | The alpha value for the new System.Drawing.Color. Valid values are 0 through 255. |
Color | baseColor | The System.Drawing.Color from which to create the new System.Drawing.Color. |
Returns
Type | Description |
---|---|
Color | The System.Drawing.Color that this method creates. |
FromArgb(Int32, Int32, Int32)
Creates a System.Drawing.Color structure from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit value to be passed for each color component, the value of each component is limited to 8 bits.
Declaration
public static Color FromArgb(int r, int g, int b)
Parameters
Type | Name | Description |
---|---|---|
Int32 | r | The red component value for the new System.Drawing.Color. Valid values are 0 through 255. |
Int32 | g | The green component value for the new System.Drawing.Color. Valid values are 0 through 255. |
Int32 | b | The blue component value for the new System.Drawing.Color. Valid values are 0 through 255. |
Returns
Type | Description |
---|---|
Color | The System.Drawing.Color structure that this method creates. |
FromArgb(Int32, Int32, Int32, Int32)
Creates a System.Drawing.Color structure from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit value to be passed for each color component, the value of each component is limited to 8 bits.
Declaration
public static Color FromArgb(int a, int r, int g, int b)
Parameters
Type | Name | Description |
---|---|---|
Int32 | a | The alpha component value for the new System.Drawing.Color. Valid values are 0 through 255. |
Int32 | r | The red component value for the new System.Drawing.Color. Valid values are 0 through 255. |
Int32 | g | The green component value for the new System.Drawing.Color. Valid values are 0 through 255. |
Int32 | b | The blue component value for the new System.Drawing.Color. Valid values are 0 through 255. |
Returns
Type | Description |
---|---|
Color | The System.Drawing.Color structure that this method creates. |
GetBrightness()
Gets the hue-saturation-lightness (HSL) lightness value for this System.Drawing.Color structure.
Declaration
public float GetBrightness()
Returns
Type | Description |
---|---|
Single | The lightness of this System.Drawing.Color. The lightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white. |
GetHashCode()
Returns a hash code for this System.Drawing.Color structure.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | An integer value that specifies the hash code for this System.Drawing.Color. |
Overrides
| Improve this Doc View SourceGetHue()
Gets the hue-saturation-lightness (HSL) hue value, in degrees, for this System.Drawing.Color structure.
Declaration
public float GetHue()
Returns
Type | Description |
---|---|
Single | The hue, in degrees, of this System.Drawing.Color. The hue is measured in degrees, ranging from 0.0 through 360.0, in HSL color space. |
GetSaturation()
Gets the hue-saturation-lightness (HSL) saturation value for this System.Drawing.Color structure.
Declaration
public float GetSaturation()
Returns
Type | Description |
---|---|
Single | The saturation of this System.Drawing.Color. The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated. |
ParseHex(String)
Convert String into an Color struct.
Declaration
public static Color ParseHex(string hexString)
Parameters
Type | Name | Description |
---|---|---|
String | hexString | Color String. Allowed formats are #AARRGGBB #RRGGBB #ARGB #RGB. |
Returns
Type | Description |
---|---|
Color | Returns an Color struct otherwise throws an exception. |
ParseHexChar(Char)
Internal Helper function for ParseHex.
Declaration
public static int ParseHexChar(char intChar)
Parameters
Type | Name | Description |
---|---|---|
Char | intChar | Value to convert. |
Returns
Type | Description |
---|---|
Int32 | Int value. |
ToArgb()
Gets the 32-bit ARGB value of this System.Drawing.Color structure.
Declaration
public int ToArgb()
Returns
Type | Description |
---|---|
Int32 | The 32-bit ARGB value of this System.Drawing.Color. |
Operators
| Improve this Doc View SourceEquality(Color, Color)
Tests whether two specified System.Drawing.Color structures are equivalent.
Declaration
public static bool operator ==(Color left, Color right)
Parameters
Type | Name | Description |
---|---|---|
Color | left | The System.Drawing.Color that is to the left of the equality operator. |
Color | right | The System.Drawing.Color that is to the right of the equality operator. |
Returns
Type | Description |
---|---|
Boolean | true if the two System.Drawing.Color structures are equal; otherwise, false. |
Inequality(Color, Color)
Tests whether two specified System.Drawing.Color structures are different.
Declaration
public static bool operator !=(Color left, Color right)
Parameters
Type | Name | Description |
---|---|---|
Color | left | The System.Drawing.Color that is to the left of the inequality operator. |
Color | right | The System.Drawing.Color that is to the right of the inequality operator. |
Returns
Type | Description |
---|---|
Boolean | true if the two System.Drawing.Color structures are different; otherwise, false. |