Color
Overview
Color is a class in Aspose.Slides FOSS for .NET.
An immutable ARGB color.
This class declares 5 methods for Color objects in .NET programs.
Available methods include: Color, Equals, FromArgb, GetHashCode, ToString.
Public members are accessible to any .NET application after installing the Aspose.Slides FOSS for .NET package.
Properties: A, AliceBlue, AntiqueWhite, Aqua, Aquamarine, Azure, and 140 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
A | int | Read | Gets the alpha component. |
R | int | Read | Gets the red component. |
G | int | Read | Gets the green component. |
B | int | Read | Gets the blue component. |
Transparent | Color | Read | Transparent white — alpha zero over white, ARGB #00FFFFFF. |
AliceBlue | Color | Read | The color alice blue, ARGB #FFF0F8FF. |
AntiqueWhite | Color | Read | The color antique white, ARGB #FFFAEBD7. |
Aqua | Color | Read | The color aqua, ARGB #FF00FFFF. |
Aquamarine | Color | Read | The color aquamarine, ARGB #FF7FFFD4. |
Azure | Color | Read | The color azure, ARGB #FFF0FFFF. |
Beige | Color | Read | The color beige, ARGB #FFF5F5DC. |
Bisque | Color | Read | The color bisque, ARGB #FFFFE4C4. |
Black | Color | Read | The color black, ARGB #FF000000. |
BlanchedAlmond | Color | Read | The color blanched almond, ARGB #FFFFEBCD. |
Blue | Color | Read | The color blue, ARGB #FF0000FF. |
BlueViolet | Color | Read | The color blue violet, ARGB #FF8A2BE2. |
Brown | Color | Read | The color brown, ARGB #FFA52A2A. |
BurlyWood | Color | Read | The color burly wood, ARGB #FFDEB887. |
CadetBlue | Color | Read | The color cadet blue, ARGB #FF5F9EA0. |
Chartreuse | Color | Read | The color chartreuse, ARGB #FF7FFF00. |
Chocolate | Color | Read | The color chocolate, ARGB #FFD2691E. |
Coral | Color | Read | The color coral, ARGB #FFFF7F50. |
CornflowerBlue | Color | Read | The color cornflower blue, ARGB #FF6495ED. |
Cornsilk | Color | Read | The color cornsilk, ARGB #FFFFF8DC. |
Crimson | Color | Read | The color crimson, ARGB #FFDC143C. |
Cyan | Color | Read | The color cyan, ARGB #FF00FFFF. |
DarkBlue | Color | Read | The color dark blue, ARGB #FF00008B. |
DarkCyan | Color | Read | The color dark cyan, ARGB #FF008B8B. |
DarkGoldenrod | Color | Read | The color dark goldenrod, ARGB #FFB8860B. |
DarkGray | Color | Read | The color dark gray, ARGB #FFA9A9A9. |
DarkGreen | Color | Read | The color dark green, ARGB #FF006400. |
DarkKhaki | Color | Read | The color dark khaki, ARGB #FFBDB76B. |
DarkMagenta | Color | Read | The color dark magenta, ARGB #FF8B008B. |
DarkOliveGreen | Color | Read | The color dark olive green, ARGB #FF556B2F. |
DarkOrange | Color | Read | The color dark orange, ARGB #FFFF8C00. |
DarkOrchid | Color | Read | The color dark orchid, ARGB #FF9932CC. |
DarkRed | Color | Read | The color dark red, ARGB #FF8B0000. |
DarkSalmon | Color | Read | The color dark salmon, ARGB #FFE9967A. |
DarkSeaGreen | Color | Read | The color dark sea green, ARGB #FF8FBC8F. |
DarkSlateBlue | Color | Read | The color dark slate blue, ARGB #FF483D8B. |
DarkSlateGray | Color | Read | The color dark slate gray, ARGB #FF2F4F4F. |
DarkTurquoise | Color | Read | The color dark turquoise, ARGB #FF00CED1. |
DarkViolet | Color | Read | The color dark violet, ARGB #FF9400D3. |
DeepPink | Color | Read | The color deep pink, ARGB #FFFF1493. |
DeepSkyBlue | Color | Read | The color deep sky blue, ARGB #FF00BFFF. |
DimGray | Color | Read | The color dim gray, ARGB #FF696969. |
DodgerBlue | Color | Read | The color dodger blue, ARGB #FF1E90FF. |
Firebrick | Color | Read | The color firebrick, ARGB #FFB22222. |
FloralWhite | Color | Read | The color floral white, ARGB #FFFFFAF0. |
ForestGreen | Color | Read | The color forest green, ARGB #FF228B22. |
Fuchsia | Color | Read | The color fuchsia, ARGB #FFFF00FF. |
Gainsboro | Color | Read | The color gainsboro, ARGB #FFDCDCDC. |
GhostWhite | Color | Read | The color ghost white, ARGB #FFF8F8FF. |
Gold | Color | Read | The color gold, ARGB #FFFFD700. |
Goldenrod | Color | Read | The color goldenrod, ARGB #FFDAA520. |
Gray | Color | Read | The color gray, ARGB #FF808080. |
Green | Color | Read | The color green, ARGB #FF008000. |
GreenYellow | Color | Read | The color green yellow, ARGB #FFADFF2F. |
Honeydew | Color | Read | The color honeydew, ARGB #FFF0FFF0. |
HotPink | Color | Read | The color hot pink, ARGB #FFFF69B4. |
IndianRed | Color | Read | The color indian red, ARGB #FFCD5C5C. |
Indigo | Color | Read | The color indigo, ARGB #FF4B0082. |
Ivory | Color | Read | The color ivory, ARGB #FFFFFFF0. |
Khaki | Color | Read | The color khaki, ARGB #FFF0E68C. |
Lavender | Color | Read | The color lavender, ARGB #FFE6E6FA. |
LavenderBlush | Color | Read | The color lavender blush, ARGB #FFFFF0F5. |
LawnGreen | Color | Read | The color lawn green, ARGB #FF7CFC00. |
LemonChiffon | Color | Read | The color lemon chiffon, ARGB #FFFFFACD. |
LightBlue | Color | Read | The color light blue, ARGB #FFADD8E6. |
LightCoral | Color | Read | The color light coral, ARGB #FFF08080. |
LightCyan | Color | Read | The color light cyan, ARGB #FFE0FFFF. |
LightGoldenrodYellow | Color | Read | The color light goldenrod yellow, ARGB #FFFAFAD2. |
LightGray | Color | Read | The color light gray, ARGB #FFD3D3D3. |
LightGreen | Color | Read | The color light green, ARGB #FF90EE90. |
LightPink | Color | Read | The color light pink, ARGB #FFFFB6C1. |
LightSalmon | Color | Read | The color light salmon, ARGB #FFFFA07A. |
LightSeaGreen | Color | Read | The color light sea green, ARGB #FF20B2AA. |
LightSkyBlue | Color | Read | The color light sky blue, ARGB #FF87CEFA. |
LightSlateGray | Color | Read | The color light slate gray, ARGB #FF778899. |
LightSteelBlue | Color | Read | The color light steel blue, ARGB #FFB0C4DE. |
LightYellow | Color | Read | The color light yellow, ARGB #FFFFFFE0. |
Lime | Color | Read | The color lime, ARGB #FF00FF00. |
LimeGreen | Color | Read | The color lime green, ARGB #FF32CD32. |
Linen | Color | Read | The color linen, ARGB #FFFAF0E6. |
Magenta | Color | Read | The color magenta, ARGB #FFFF00FF. |
Maroon | Color | Read | The color maroon, ARGB #FF800000. |
MediumAquamarine | Color | Read | The color medium aquamarine, ARGB #FF66CDAA. |
MediumBlue | Color | Read | The color medium blue, ARGB #FF0000CD. |
MediumOrchid | Color | Read | The color medium orchid, ARGB #FFBA55D3. |
MediumPurple | Color | Read | The color medium purple, ARGB #FF9370DB. |
MediumSeaGreen | Color | Read | The color medium sea green, ARGB #FF3CB371. |
MediumSlateBlue | Color | Read | The color medium slate blue, ARGB #FF7B68EE. |
MediumSpringGreen | Color | Read | The color medium spring green, ARGB #FF00FA9A. |
MediumTurquoise | Color | Read | The color medium turquoise, ARGB #FF48D1CC. |
MediumVioletRed | Color | Read | The color medium violet red, ARGB #FFC71585. |
MidnightBlue | Color | Read | The color midnight blue, ARGB #FF191970. |
MintCream | Color | Read | The color mint cream, ARGB #FFF5FFFA. |
MistyRose | Color | Read | The color misty rose, ARGB #FFFFE4E1. |
Moccasin | Color | Read | The color moccasin, ARGB #FFFFE4B5. |
NavajoWhite | Color | Read | The color navajo white, ARGB #FFFFDEAD. |
Navy | Color | Read | The color navy, ARGB #FF000080. |
OldLace | Color | Read | The color old lace, ARGB #FFFDF5E6. |
Olive | Color | Read | The color olive, ARGB #FF808000. |
OliveDrab | Color | Read | The color olive drab, ARGB #FF6B8E23. |
Orange | Color | Read | The color orange, ARGB #FFFFA500. |
OrangeRed | Color | Read | The color orange red, ARGB #FFFF4500. |
Orchid | Color | Read | The color orchid, ARGB #FFDA70D6. |
PaleGoldenrod | Color | Read | The color pale goldenrod, ARGB #FFEEE8AA. |
PaleGreen | Color | Read | The color pale green, ARGB #FF98FB98. |
PaleTurquoise | Color | Read | The color pale turquoise, ARGB #FFAFEEEE. |
PaleVioletRed | Color | Read | The color pale violet red, ARGB #FFDB7093. |
PapayaWhip | Color | Read | The color papaya whip, ARGB #FFFFEFD5. |
PeachPuff | Color | Read | The color peach puff, ARGB #FFFFDAB9. |
Peru | Color | Read | The color peru, ARGB #FFCD853F. |
Pink | Color | Read | The color pink, ARGB #FFFFC0CB. |
Plum | Color | Read | The color plum, ARGB #FFDDA0DD. |
PowderBlue | Color | Read | The color powder blue, ARGB #FFB0E0E6. |
Purple | Color | Read | The color purple, ARGB #FF800080. |
Red | Color | Read | The color red, ARGB #FFFF0000. |
RosyBrown | Color | Read | The color rosy brown, ARGB #FFBC8F8F. |
RoyalBlue | Color | Read | The color royal blue, ARGB #FF4169E1. |
SaddleBrown | Color | Read | The color saddle brown, ARGB #FF8B4513. |
Salmon | Color | Read | The color salmon, ARGB #FFFA8072. |
SandyBrown | Color | Read | The color sandy brown, ARGB #FFF4A460. |
SeaGreen | Color | Read | The color sea green, ARGB #FF2E8B57. |
SeaShell | Color | Read | The color sea shell, ARGB #FFFFF5EE. |
Sienna | Color | Read | The color sienna, ARGB #FFA0522D. |
Silver | Color | Read | The color silver, ARGB #FFC0C0C0. |
SkyBlue | Color | Read | The color sky blue, ARGB #FF87CEEB. |
SlateBlue | Color | Read | The color slate blue, ARGB #FF6A5ACD. |
SlateGray | Color | Read | The color slate gray, ARGB #FF708090. |
Snow | Color | Read | The color snow, ARGB #FFFFFAFA. |
SpringGreen | Color | Read | The color spring green, ARGB #FF00FF7F. |
SteelBlue | Color | Read | The color steel blue, ARGB #FF4682B4. |
Tan | Color | Read | The color tan, ARGB #FFD2B48C. |
Teal | Color | Read | The color teal, ARGB #FF008080. |
Thistle | Color | Read | The color thistle, ARGB #FFD8BFD8. |
Tomato | Color | Read | The color tomato, ARGB #FFFF6347. |
Turquoise | Color | Read | The color turquoise, ARGB #FF40E0D0. |
Violet | Color | Read | The color violet, ARGB #FFEE82EE. |
Wheat | Color | Read | The color wheat, ARGB #FFF5DEB3. |
White | Color | Read | The color white, ARGB #FFFFFFFF. |
WhiteSmoke | Color | Read | The color white smoke, ARGB #FFF5F5F5. |
Yellow | Color | Read | The color yellow, ARGB #FFFFFF00. |
YellowGreen | Color | Read | The color yellow green, ARGB #FF9ACD32. |
Empty | Color | Read | A color with every component zero, ARGB #00000000. |
Methods
| Signature | Description |
|---|---|
Color(a: int, r: int, g: int, b: int) | Initializes a new instance of Color with the specified ARGB components. |
FromArgb(a: int, r: int, g: int, b: int) | Creates a new Color from the specified ARGB components. |
Equals(obj: object?) | Returns true if the provided object is a Color with the same ARGB values |
GetHashCode() | Returns a hash code based on the color’s ARGB components |
ToString() | Returns a string that represents the color’s ARGB values |