Skip to main content

Colors Class

Defines a set of predefined colors.

Definition​

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public sealed class Colors
View Source
InheritanceObject → Colors

Constructors​

Colors()Initializes a new instance of the Colors class

Properties​

AliceBlueGets a color with an ARGB value of #fff0f8ff.
AntiqueWhiteGets a color with an ARGB value of #fffaebd7.
AquaGets a color with an ARGB value of #ff00ffff.
AquamarineGets a color with an ARGB value of #ff7fffd4.
AzureGets a color with an ARGB value of #fff0ffff.
BeigeGets a color with an ARGB value of #fff5f5dc.
BisqueGets a color with an ARGB value of #ffffe4c4.
BlackGets a color with an ARGB value of #ff000000.
BlanchedAlmondGets a color with an ARGB value of #ffffebcd.
BlueGets a color with an ARGB value of #ff0000ff.
BlueVioletGets a color with an ARGB value of #ff8a2be2.
BrownGets a color with an ARGB value of #ffa52a2a.
BurlyWoodGets a color with an ARGB value of #ffdeb887.
CadetBlueGets a color with an ARGB value of #ff5f9ea0.
ChartreuseGets a color with an ARGB value of #ff7fff00.
ChocolateGets a color with an ARGB value of #ffd2691e.
CoralGets a color with an ARGB value of #ffff7f50.
CornflowerBlueGets a color with an ARGB value of #ff6495ed.
CornsilkGets a color with an ARGB value of #fffff8dc.
CrimsonGets a color with an ARGB value of #ffdc143c.
CyanGets a color with an ARGB value of #ff00ffff.
DarkBlueGets a color with an ARGB value of #ff00008b.
DarkCyanGets a color with an ARGB value of #ff008b8b.
DarkGoldenrodGets a color with an ARGB value of #ffb8860b.
DarkGrayGets a color with an ARGB value of #ffa9a9a9.
DarkGreenGets a color with an ARGB value of #ff006400.
DarkKhakiGets a color with an ARGB value of #ffbdb76b.
DarkMagentaGets a color with an ARGB value of #ff8b008b.
DarkOliveGreenGets a color with an ARGB value of #ff556b2f.
DarkOrangeGets a color with an ARGB value of #ffff8c00.
DarkOrchidGets a color with an ARGB value of #ff9932cc.
DarkRedGets a color with an ARGB value of #ff8b0000.
DarkSalmonGets a color with an ARGB value of #ffe9967a.
DarkSeaGreenGets a color with an ARGB value of #ff8fbc8f.
DarkSlateBlueGets a color with an ARGB value of #ff483d8b.
DarkSlateGrayGets a color with an ARGB value of #ff2f4f4f.
DarkTurquoiseGets a color with an ARGB value of #ff00ced1.
DarkVioletGets a color with an ARGB value of #ff9400d3.
DeepPinkGets a color with an ARGB value of #ffff1493.
DeepSkyBlueGets a color with an ARGB value of #ff00bfff.
DimGrayGets a color with an ARGB value of #ff696969.
DodgerBlueGets a color with an ARGB value of #ff1e90ff.
FirebrickGets a color with an ARGB value of #ffb22222.
FloralWhiteGets a color with an ARGB value of #fffffaf0.
ForestGreenGets a color with an ARGB value of #ff228b22.
FuchsiaGets a color with an ARGB value of #ffff00ff.
GainsboroGets a color with an ARGB value of #ffdcdcdc.
GhostWhiteGets a color with an ARGB value of #fff8f8ff.
GoldGets a color with an ARGB value of #ffffd700.
GoldenrodGets a color with an ARGB value of #ffdaa520.
GrayGets a color with an ARGB value of #ff808080.
GreenGets a color with an ARGB value of #ff008000.
GreenYellowGets a color with an ARGB value of #ffadff2f.
HoneydewGets a color with an ARGB value of #fff0fff0.
HotPinkGets a color with an ARGB value of #ffff69b4.
IndianRedGets a color with an ARGB value of #ffcd5c5c.
IndigoGets a color with an ARGB value of #ff4b0082.
IvoryGets a color with an ARGB value of #fffffff0.
KhakiGets a color with an ARGB value of #fff0e68c.
LavenderGets a color with an ARGB value of #ffe6e6fa.
LavenderBlushGets a color with an ARGB value of #fffff0f5.
LawnGreenGets a color with an ARGB value of #ff7cfc00.
LemonChiffonGets a color with an ARGB value of #fffffacd.
LightBlueGets a color with an ARGB value of #ffadd8e6.
LightCoralGets a color with an ARGB value of #fff08080.
LightCyanGets a color with an ARGB value of #ffe0ffff.
LightGoldenrodYellowGets a color with an ARGB value of #fffafad2.
LightGrayGets a color with an ARGB value of #ffd3d3d3.
LightGreenGets a color with an ARGB value of #ff90ee90.
LightPinkGets a color with an ARGB value of #ffffb6c1.
LightSalmonGets a color with an ARGB value of #ffffa07a.
LightSeaGreenGets a color with an ARGB value of #ff20b2aa.
LightSkyBlueGets a color with an ARGB value of #ff87cefa.
LightSlateGrayGets a color with an ARGB value of #ff778899.
LightSteelBlueGets a color with an ARGB value of #ffb0c4de.
LightYellowGets a color with an ARGB value of #ffffffe0.
LimeGets a color with an ARGB value of #ff00ff00.
LimeGreenGets a color with an ARGB value of #ff32cd32.
LinenGets a color with an ARGB value of #fffaf0e6.
MagentaGets a color with an ARGB value of #ffff00ff.
MaroonGets a color with an ARGB value of #ff800000.
MediumAquamarineGets a color with an ARGB value of #ff66cdaa.
MediumBlueGets a color with an ARGB value of #ff0000cd.
MediumOrchidGets a color with an ARGB value of #ffba55d3.
MediumPurpleGets a color with an ARGB value of #ff9370db.
MediumSeaGreenGets a color with an ARGB value of #ff3cb371.
MediumSlateBlueGets a color with an ARGB value of #ff7b68ee.
MediumSpringGreenGets a color with an ARGB value of #ff00fa9a.
MediumTurquoiseGets a color with an ARGB value of #ff48d1cc.
MediumVioletRedGets a color with an ARGB value of #ffc71585.
MidnightBlueGets a color with an ARGB value of #ff191970.
MintCreamGets a color with an ARGB value of #fff5fffa.
MistyRoseGets a color with an ARGB value of #ffffe4e1.
MoccasinGets a color with an ARGB value of #ffffe4b5.
NavajoWhiteGets a color with an ARGB value of #ffffdead.
NavyGets a color with an ARGB value of #ff000080.
OldLaceGets a color with an ARGB value of #fffdf5e6.
OliveGets a color with an ARGB value of #ff808000.
OliveDrabGets a color with an ARGB value of #ff6b8e23.
OrangeGets a color with an ARGB value of #ffffa500.
OrangeRedGets a color with an ARGB value of #ffff4500.
OrchidGets a color with an ARGB value of #ffda70d6.
PaleGoldenrodGets a color with an ARGB value of #ffeee8aa.
PaleGreenGets a color with an ARGB value of #ff98fb98.
PaleTurquoiseGets a color with an ARGB value of #ffafeeee.
PaleVioletRedGets a color with an ARGB value of #ffdb7093.
PapayaWhipGets a color with an ARGB value of #ffffefd5.
PeachPuffGets a color with an ARGB value of #ffffdab9.
PeruGets a color with an ARGB value of #ffcd853f.
PinkGets a color with an ARGB value of #ffffc0cb.
PlumGets a color with an ARGB value of #ffdda0dd.
PowderBlueGets a color with an ARGB value of #ffb0e0e6.
PurpleGets a color with an ARGB value of #ff800080.
RedGets a color with an ARGB value of #ffff0000.
RosyBrownGets a color with an ARGB value of #ffbc8f8f.
RoyalBlueGets a color with an ARGB value of #ff4169e1.
SaddleBrownGets a color with an ARGB value of #ff8b4513.
SalmonGets a color with an ARGB value of #fffa8072.
SandyBrownGets a color with an ARGB value of #fff4a460.
SeaGreenGets a color with an ARGB value of #ff2e8b57.
SeaShellGets a color with an ARGB value of #fffff5ee.
SiennaGets a color with an ARGB value of #ffa0522d.
SilverGets a color with an ARGB value of #ffc0c0c0.
SkyBlueGets a color with an ARGB value of #ff87ceeb.
SlateBlueGets a color with an ARGB value of #ff6a5acd.
SlateGrayGets a color with an ARGB value of #ff708090.
SnowGets a color with an ARGB value of #fffffafa.
SpringGreenGets a color with an ARGB value of #ff00ff7f.
SteelBlueGets a color with an ARGB value of #ff4682b4.
TanGets a color with an ARGB value of #ffd2b48c.
TealGets a color with an ARGB value of #ff008080.
ThistleGets a color with an ARGB value of #ffd8bfd8.
TomatoGets a color with an ARGB value of #ffff6347.
TransparentGets a color with an ARGB value of #00ffffff.
TurquoiseGets a color with an ARGB value of #ff40e0d0.
VioletGets a color with an ARGB value of #ffee82ee.
WheatGets a color with an ARGB value of #fff5deb3.
WhiteGets a color with an ARGB value of #ffffffff.
WhiteSmokeGets a color with an ARGB value of #fff5f5f5.
YellowGets a color with an ARGB value of #ffffff00.
YellowGreenGets a color with an ARGB value of #ff9acd32.

Methods​

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also​

Reference​

Avalonia.Media Namespace