Public Member Functions

 Color ()
 Constructs an "empty" instance of Color class that does not represent any color. More...
 
int ToArgb () const
 Returns a 32-bit ARGB value of the color represented by the current object. More...
 
bool get_IsEmpty () const
 
int get_R () const
 Returns the value of the red component of the color represented by the current object. More...
 
int get_G () const
 Returns the value of the green component of the color represented by the current object. More...
 
int get_B () const
 Returns the value of the blue component of the color represented by the current object. More...
 
int get_A () const
 Returns the value of the alpha component of the color represented by the current object. More...
 
String get_Name () const
 Returns the name of the color represented by the current object. More...
 
float GetBrightness ()
 Returns the brightness component of the color reprsented by the current object. More...
 
int GetHashCode () const
 Returns the hash code of the current object. More...
 
String ToString () const
 Returns the string representation of the current object. More...
 
bool IsNull () const
 Always returns false. More...
 
bool operator== (const std::nullptr_t &r) const
 Always returns false. More...
 
bool operator!= (const std::nullptr_t &r) const
 Always returns true. More...
 
bool Equals (const Color &color) const
 
bool operator== (const Color &r) const
 
bool operator!= (const Color &r) const
 

Static Public Member Functions

static Color FromArgb (int argb)
 
static Color FromArgb (int alpha, int red, int green, int blue)
 
static Color FromArgb (int red, int green, int blue)
 
static Color FromArgb (int alpha, Color base_color)
 
static Color FromName (const String &name)
 
static Color FromKnownColor (KnownColor kc)
 
static Color get_Transparent ()
 Returns a color whose ARGB value in hexadecimal notation is #00FFFFFF. More...
 
static Color get_AliceBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FFF0F8FF. More...
 
static Color get_AntiqueWhite ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFAEBD7. More...
 
static Color get_Aqua ()
 Returns a color whose ARGB value in hexadecimal notation is #FF00FFFF. More...
 
static Color get_Aquamarine ()
 Returns a color whose ARGB value in hexadecimal notation is #FF7FFFD4. More...
 
static Color get_Azure ()
 Returns a color whose ARGB value in hexadecimal notation is #FFF0FFFF. More...
 
static Color get_Beige ()
 Returns a color whose ARGB value in hexadecimal notation is #FFF5F5DC. More...
 
static Color get_Bisque ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFE4C4. More...
 
static Color get_Black ()
 Returns a color whose ARGB value in hexadecimal notation is #FF000000. More...
 
static Color get_BlanchedAlmond ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFEBCD. More...
 
static Color get_Blue ()
 Returns a color whose ARGB value in hexadecimal notation is #FF0000FF. More...
 
static Color get_BlueViolet ()
 Returns a color whose ARGB value in hexadecimal notation is #FF8A2BE2. More...
 
static Color get_Brown ()
 Returns a color whose ARGB value in hexadecimal notation is #FFA52A2A. More...
 
static Color get_BurlyWood ()
 Returns a color whose ARGB value in hexadecimal notation is #FFDEB887. More...
 
static Color get_CadetBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FF5F9EA0. More...
 
static Color get_Chartreuse ()
 Returns a color whose ARGB value in hexadecimal notation is #FF7FFF00. More...
 
static Color get_Chocolate ()
 Returns a color whose ARGB value in hexadecimal notation is #FFD2691E. More...
 
static Color get_Coral ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFF7F50. More...
 
static Color get_CornflowerBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FF6495ED. More...
 
static Color get_Cornsilk ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFF8DC. More...
 
static Color get_Crimson ()
 Returns a color whose ARGB value in hexadecimal notation is #FFDC143C. More...
 
static Color get_Cyan ()
 Returns a color whose ARGB value in hexadecimal notation is #FF00FFFF. More...
 
static Color get_DarkBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FF00008B. More...
 
static Color get_DarkCyan ()
 Returns a color whose ARGB value in hexadecimal notation is #FF008B8B. More...
 
static Color get_DarkGoldenrod ()
 Returns a color whose ARGB value in hexadecimal notation is #FFB8860B. More...
 
static Color get_DarkGray ()
 Returns a color whose ARGB value in hexadecimal notation is #FFA9A9A9. More...
 
static Color get_DarkGreen ()
 Returns a color whose ARGB value in hexadecimal notation is #FF006400. More...
 
static Color get_DarkKhaki ()
 Returns a color whose ARGB value in hexadecimal notation is #FFBDB76B. More...
 
static Color get_DarkMagenta ()
 Returns a color whose ARGB value in hexadecimal notation is #FF8B008B. More...
 
static Color get_DarkOliveGreen ()
 Returns a color whose ARGB value in hexadecimal notation is #FF556B2F. More...
 
static Color get_DarkOrange ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFF8C00. More...
 
static Color get_DarkOrchid ()
 Returns a color whose ARGB value in hexadecimal notation is #FF9932CC. More...
 
static Color get_DarkRed ()
 Returns a color whose ARGB value in hexadecimal notation is #FF8B0000. More...
 
static Color get_DarkSalmon ()
 Returns a color whose ARGB value in hexadecimal notation is #FFE9967A. More...
 
static Color get_DarkSeaGreen ()
 Returns a color whose ARGB value in hexadecimal notation is #FF8FBC8F. More...
 
static Color get_DarkSlateBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FF483D8B. More...
 
static Color get_DarkSlateGray ()
 Returns a color whose ARGB value in hexadecimal notation is #FF2F4F4F. More...
 
static Color get_DarkTurquoise ()
 Returns a color whose ARGB value in hexadecimal notation is #FF00CED1. More...
 
static Color get_DarkViolet ()
 Returns a color whose ARGB value in hexadecimal notation is #FF9400D3. More...
 
static Color get_DeepPink ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFF1493. More...
 
static Color get_DeepSkyBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FF00BFFF. More...
 
static Color get_DimGray ()
 Returns a color whose ARGB value in hexadecimal notation is #FF696969. More...
 
static Color get_DodgerBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FF1E90FF. More...
 
static Color get_Firebrick ()
 Returns a color whose ARGB value in hexadecimal notation is #FFB22222. More...
 
static Color get_FloralWhite ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFFAF0. More...
 
static Color get_ForestGreen ()
 Returns a color whose ARGB value in hexadecimal notation is #FF228B22. More...
 
static Color get_Fuchsia ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFF00FF. More...
 
static Color get_Gainsboro ()
 Returns a color whose ARGB value in hexadecimal notation is #FFDCDCDC. More...
 
static Color get_GhostWhite ()
 Returns a color whose ARGB value in hexadecimal notation is #FFF8F8FF. More...
 
static Color get_Gold ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFD700. More...
 
static Color get_Goldenrod ()
 Returns a color whose ARGB value in hexadecimal notation is #FFDAA520. More...
 
static Color get_Gray ()
 Returns a color whose ARGB value in hexadecimal notation is #FF808080. More...
 
static Color get_Green ()
 Returns a color whose ARGB value in hexadecimal notation is #FF008000. More...
 
static Color get_GreenYellow ()
 Returns a color whose ARGB value in hexadecimal notation is #FFADFF2F. More...
 
static Color get_Honeydew ()
 Returns a color whose ARGB value in hexadecimal notation is #FFF0FFF0. More...
 
static Color get_HotPink ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFF69B4. More...
 
static Color get_IndianRed ()
 Returns a color whose ARGB value in hexadecimal notation is #FFCD5C5C. More...
 
static Color get_Indigo ()
 Returns a color whose ARGB value in hexadecimal notation is #FF4B0082. More...
 
static Color get_Ivory ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFFFF0. More...
 
static Color get_Khaki ()
 Returns a color whose ARGB value in hexadecimal notation is #FFF0E68C. More...
 
static Color get_Lavender ()
 Returns a color whose ARGB value in hexadecimal notation is #FFE6E6FA. More...
 
static Color get_LavenderBlush ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFF0F5. More...
 
static Color get_LawnGreen ()
 Returns a color whose ARGB value in hexadecimal notation is #FF7CFC00. More...
 
static Color get_LemonChiffon ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFFACD. More...
 
static Color get_LightBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FFADD8E6. More...
 
static Color get_LightCoral ()
 Returns a color whose ARGB value in hexadecimal notation is #FFF08080. More...
 
static Color get_LightCyan ()
 Returns a color whose ARGB value in hexadecimal notation is #FFE0FFFF. More...
 
static Color get_LightGoldenrodYellow ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFAFAD2. More...
 
static Color get_LightGray ()
 Returns a color whose ARGB value in hexadecimal notation is #FFD3D3D3. More...
 
static Color get_LightGreen ()
 Returns a color whose ARGB value in hexadecimal notation is #FF90EE90. More...
 
static Color get_LightPink ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFB6C1. More...
 
static Color get_LightSalmon ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFA07A. More...
 
static Color get_LightSeaGreen ()
 Returns a color whose ARGB value in hexadecimal notation is #FF20B2AA. More...
 
static Color get_LightSkyBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FF87CEFA. More...
 
static Color get_LightSlateGray ()
 Returns a color whose ARGB value in hexadecimal notation is #FF778899. More...
 
static Color get_LightSteelBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FFB0C4DE. More...
 
static Color get_LightYellow ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFFFE0. More...
 
static Color get_Lime ()
 Returns a color whose ARGB value in hexadecimal notation is #FF00FF00. More...
 
static Color get_LimeGreen ()
 Returns a color whose ARGB value in hexadecimal notation is #FF32CD32. More...
 
static Color get_Linen ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFAF0E6. More...
 
static Color get_Magenta ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFF00FF. More...
 
static Color get_Maroon ()
 Returns a color whose ARGB value in hexadecimal notation is #FF800000. More...
 
static Color get_MediumAquamarine ()
 Returns a color whose ARGB value in hexadecimal notation is #FF66CDAA. More...
 
static Color get_MediumBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FF0000CD. More...
 
static Color get_MediumOrchid ()
 Returns a color whose ARGB value in hexadecimal notation is #FFBA55D3. More...
 
static Color get_MediumPurple ()
 Returns a color whose ARGB value in hexadecimal notation is #FF9370DB. More...
 
static Color get_MediumSeaGreen ()
 Returns a color whose ARGB value in hexadecimal notation is #FF3CB371. More...
 
static Color get_MediumSlateBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FF7B68EE. More...
 
static Color get_MediumSpringGreen ()
 Returns a color whose ARGB value in hexadecimal notation is #FF00FA9A. More...
 
static Color get_MediumTurquoise ()
 Returns a color whose ARGB value in hexadecimal notation is #FF48D1CC. More...
 
static Color get_MediumVioletRed ()
 Returns a color whose ARGB value in hexadecimal notation is #FFC71585. More...
 
static Color get_MidnightBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FF191970. More...
 
static Color get_MintCream ()
 Returns a color whose ARGB value in hexadecimal notation is #FFF5FFFA. More...
 
static Color get_MistyRose ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFE4E1. More...
 
static Color get_Moccasin ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFE4B5. More...
 
static Color get_NavajoWhite ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFDEAD. More...
 
static Color get_Navy ()
 Returns a color whose ARGB value in hexadecimal notation is #FF000080. More...
 
static Color get_OldLace ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFDF5E6. More...
 
static Color get_Olive ()
 Returns a color whose ARGB value in hexadecimal notation is #FF808000. More...
 
static Color get_OliveDrab ()
 Returns a color whose ARGB value in hexadecimal notation is #FF6B8E23. More...
 
static Color get_Orange ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFA500. More...
 
static Color get_OrangeRed ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFF4500. More...
 
static Color get_Orchid ()
 Returns a color whose ARGB value in hexadecimal notation is #FFDA70D6. More...
 
static Color get_PaleGoldenrod ()
 Returns a color whose ARGB value in hexadecimal notation is #FFEEE8AA. More...
 
static Color get_PaleGreen ()
 Returns a color whose ARGB value in hexadecimal notation is #FF98FB98. More...
 
static Color get_PaleTurquoise ()
 Returns a color whose ARGB value in hexadecimal notation is #FFAFEEEE. More...
 
static Color get_PaleVioletRed ()
 Returns a color whose ARGB value in hexadecimal notation is #FFDB7093. More...
 
static Color get_PapayaWhip ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFEFD5. More...
 
static Color get_PeachPuff ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFDAB9. More...
 
static Color get_Peru ()
 Returns a color whose ARGB value in hexadecimal notation is #FFCD853F. More...
 
static Color get_Pink ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFC0CB. More...
 
static Color get_Plum ()
 Returns a color whose ARGB value in hexadecimal notation is #FFDDA0DD. More...
 
static Color get_PowderBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FFB0E0E6. More...
 
static Color get_Purple ()
 Returns a color whose ARGB value in hexadecimal notation is #FF800080. More...
 
static Color get_Red ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFF0000. More...
 
static Color get_RosyBrown ()
 Returns a color whose ARGB value in hexadecimal notation is #FFBC8F8F. More...
 
static Color get_RoyalBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FF4169E1. More...
 
static Color get_SaddleBrown ()
 Returns a color whose ARGB value in hexadecimal notation is #FF8B4513. More...
 
static Color get_Salmon ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFA8072. More...
 
static Color get_SandyBrown ()
 Returns a color whose ARGB value in hexadecimal notation is #FFF4A460. More...
 
static Color get_SeaGreen ()
 Returns a color whose ARGB value in hexadecimal notation is #FF2E8B57. More...
 
static Color get_SeaShell ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFF5EE. More...
 
static Color get_Sienna ()
 Returns a color whose ARGB value in hexadecimal notation is #FFA0522D. More...
 
static Color get_Silver ()
 Returns a color whose ARGB value in hexadecimal notation is #FFC0C0C0. More...
 
static Color get_SkyBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FF87CEEB. More...
 
static Color get_SlateBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FF6A5ACD. More...
 
static Color get_SlateGray ()
 Returns a color whose ARGB value in hexadecimal notation is #FF708090. More...
 
static Color get_Snow ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFFAFA. More...
 
static Color get_SpringGreen ()
 Returns a color whose ARGB value in hexadecimal notation is #FF00FF7F. More...
 
static Color get_SteelBlue ()
 Returns a color whose ARGB value in hexadecimal notation is #FF4682B4. More...
 
static Color get_Tan ()
 Returns a color whose ARGB value in hexadecimal notation is #FFD2B48C. More...
 
static Color get_Teal ()
 Returns a color whose ARGB value in hexadecimal notation is #FF008080. More...
 
static Color get_Thistle ()
 Returns a color whose ARGB value in hexadecimal notation is #FFD8BFD8. More...
 
static Color get_Tomato ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFF6347. More...
 
static Color get_Turquoise ()
 Returns a color whose ARGB value in hexadecimal notation is #FF40E0D0. More...
 
static Color get_Violet ()
 Returns a color whose ARGB value in hexadecimal notation is #FFEE82EE. More...
 
static Color get_Wheat ()
 Returns a color whose ARGB value in hexadecimal notation is #FFF5DEB3. More...
 
static Color get_White ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFFFFF. More...
 
static Color get_WhiteSmoke ()
 Returns a color whose ARGB value in hexadecimal notation is #FFF5F5F5. More...
 
static Color get_Yellow ()
 Returns a color whose ARGB value in hexadecimal notation is #FFFFFF00. More...
 
static Color get_YellowGreen ()
 Returns a color whose ARGB value in hexadecimal notation is #FF9ACD32. More...
 

Static Public Attributes

static const Color Empty
 An "empty" instance of Color class i.e. an instance that does not represent any color. More...
 

Detailed Description

Represents a color. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.

Constructor & Destructor Documentation

◆ Color()

System::Drawing::Color::Color ( )

Constructs an "empty" instance of Color class that does not represent any color.

Member Function Documentation

◆ Equals()

bool System::Drawing::Color::Equals ( const Color color) const

Determines if the current and the specified Color objects represent the same color.

Parameters
colorThe Color object to compare the current object with
Returns
True if both the current and the specified objects represent the same color, otherwise - false

◆ FromArgb() [1/4]

static Color System::Drawing::Color::FromArgb ( int  argb)
static

Constructs an instance of Color class that reprsents the specfied color.

Parameters
argbA 32-bit ARGB value of the color to be represented by the object being constructed
Returns
An object that represents the specified color.

◆ FromArgb() [2/4]

static Color System::Drawing::Color::FromArgb ( int  alpha,
int  red,
int  green,
int  blue 
)
static

Constructs an instance of Color class that reprsents the specfied color.

Parameters
alphaA value of the alpah component of the color
redA value of the red component of the color
greenA value of the green component of the color
blueA value of the blue component of the color
Returns
An object that represents the specified color.

◆ FromArgb() [3/4]

static Color System::Drawing::Color::FromArgb ( int  red,
int  green,
int  blue 
)
static

Constructs an instance of Color class that reprsents the specfied color with alpha component set to 0xFF.

Parameters
redA value of the red component of the color
greenA value of the green component of the color
blueA value of the blue component of the color
Returns
An object that represents the specified color.

◆ FromArgb() [4/4]

static Color System::Drawing::Color::FromArgb ( int  alpha,
Color  base_color 
)
static

Constructs an instance of Color class that reprsents the specfied color.

Parameters
alphaA value of the alpah component of the color
base_colorAn instance of Color object that represents the red, green and blue components of the color to be represented by the object being created
Returns
An object that represents the specified color.

◆ FromKnownColor()

static Color System::Drawing::Color::FromKnownColor ( KnownColor  kc)
static

Constructs an instance of Color class that represents the specified known color.

Parameters
kcA known color to be represented by the object being created
Returns
An instance of Color class that represents kc color

◆ FromName()

static Color System::Drawing::Color::FromName ( const String name)
static

Constructs an instance of Color class that represents a color with the specified name.

Parameters
nameThe name of the color
Returns
An instance of Color class that represents a color named name

◆ get_A()

int System::Drawing::Color::get_A ( ) const

Returns the value of the alpha component of the color represented by the current object.

◆ get_AliceBlue()

static Color System::Drawing::Color::get_AliceBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFF0F8FF.

◆ get_AntiqueWhite()

static Color System::Drawing::Color::get_AntiqueWhite ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFAEBD7.

◆ get_Aqua()

static Color System::Drawing::Color::get_Aqua ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF00FFFF.

◆ get_Aquamarine()

static Color System::Drawing::Color::get_Aquamarine ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF7FFFD4.

◆ get_Azure()

static Color System::Drawing::Color::get_Azure ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFF0FFFF.

◆ get_B()

int System::Drawing::Color::get_B ( ) const

Returns the value of the blue component of the color represented by the current object.

◆ get_Beige()

static Color System::Drawing::Color::get_Beige ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFF5F5DC.

◆ get_Bisque()

static Color System::Drawing::Color::get_Bisque ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFE4C4.

◆ get_Black()

static Color System::Drawing::Color::get_Black ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF000000.

◆ get_BlanchedAlmond()

static Color System::Drawing::Color::get_BlanchedAlmond ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFEBCD.

◆ get_Blue()

static Color System::Drawing::Color::get_Blue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF0000FF.

◆ get_BlueViolet()

static Color System::Drawing::Color::get_BlueViolet ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF8A2BE2.

◆ get_Brown()

static Color System::Drawing::Color::get_Brown ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFA52A2A.

◆ get_BurlyWood()

static Color System::Drawing::Color::get_BurlyWood ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFDEB887.

◆ get_CadetBlue()

static Color System::Drawing::Color::get_CadetBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF5F9EA0.

◆ get_Chartreuse()

static Color System::Drawing::Color::get_Chartreuse ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF7FFF00.

◆ get_Chocolate()

static Color System::Drawing::Color::get_Chocolate ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFD2691E.

◆ get_Coral()

static Color System::Drawing::Color::get_Coral ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFF7F50.

◆ get_CornflowerBlue()

static Color System::Drawing::Color::get_CornflowerBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF6495ED.

◆ get_Cornsilk()

static Color System::Drawing::Color::get_Cornsilk ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFF8DC.

◆ get_Crimson()

static Color System::Drawing::Color::get_Crimson ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFDC143C.

◆ get_Cyan()

static Color System::Drawing::Color::get_Cyan ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF00FFFF.

◆ get_DarkBlue()

static Color System::Drawing::Color::get_DarkBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF00008B.

◆ get_DarkCyan()

static Color System::Drawing::Color::get_DarkCyan ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF008B8B.

◆ get_DarkGoldenrod()

static Color System::Drawing::Color::get_DarkGoldenrod ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFB8860B.

◆ get_DarkGray()

static Color System::Drawing::Color::get_DarkGray ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFA9A9A9.

◆ get_DarkGreen()

static Color System::Drawing::Color::get_DarkGreen ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF006400.

◆ get_DarkKhaki()

static Color System::Drawing::Color::get_DarkKhaki ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFBDB76B.

◆ get_DarkMagenta()

static Color System::Drawing::Color::get_DarkMagenta ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF8B008B.

◆ get_DarkOliveGreen()

static Color System::Drawing::Color::get_DarkOliveGreen ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF556B2F.

◆ get_DarkOrange()

static Color System::Drawing::Color::get_DarkOrange ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFF8C00.

◆ get_DarkOrchid()

static Color System::Drawing::Color::get_DarkOrchid ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF9932CC.

◆ get_DarkRed()

static Color System::Drawing::Color::get_DarkRed ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF8B0000.

◆ get_DarkSalmon()

static Color System::Drawing::Color::get_DarkSalmon ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFE9967A.

◆ get_DarkSeaGreen()

static Color System::Drawing::Color::get_DarkSeaGreen ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF8FBC8F.

◆ get_DarkSlateBlue()

static Color System::Drawing::Color::get_DarkSlateBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF483D8B.

◆ get_DarkSlateGray()

static Color System::Drawing::Color::get_DarkSlateGray ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF2F4F4F.

◆ get_DarkTurquoise()

static Color System::Drawing::Color::get_DarkTurquoise ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF00CED1.

◆ get_DarkViolet()

static Color System::Drawing::Color::get_DarkViolet ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF9400D3.

◆ get_DeepPink()

static Color System::Drawing::Color::get_DeepPink ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFF1493.

◆ get_DeepSkyBlue()

static Color System::Drawing::Color::get_DeepSkyBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF00BFFF.

◆ get_DimGray()

static Color System::Drawing::Color::get_DimGray ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF696969.

◆ get_DodgerBlue()

static Color System::Drawing::Color::get_DodgerBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF1E90FF.

◆ get_Firebrick()

static Color System::Drawing::Color::get_Firebrick ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFB22222.

◆ get_FloralWhite()

static Color System::Drawing::Color::get_FloralWhite ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFFAF0.

◆ get_ForestGreen()

static Color System::Drawing::Color::get_ForestGreen ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF228B22.

◆ get_Fuchsia()

static Color System::Drawing::Color::get_Fuchsia ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFF00FF.

◆ get_G()

int System::Drawing::Color::get_G ( ) const

Returns the value of the green component of the color represented by the current object.

◆ get_Gainsboro()

static Color System::Drawing::Color::get_Gainsboro ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFDCDCDC.

◆ get_GhostWhite()

static Color System::Drawing::Color::get_GhostWhite ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFF8F8FF.

◆ get_Gold()

static Color System::Drawing::Color::get_Gold ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFD700.

◆ get_Goldenrod()

static Color System::Drawing::Color::get_Goldenrod ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFDAA520.

◆ get_Gray()

static Color System::Drawing::Color::get_Gray ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF808080.

◆ get_Green()

static Color System::Drawing::Color::get_Green ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF008000.

◆ get_GreenYellow()

static Color System::Drawing::Color::get_GreenYellow ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFADFF2F.

◆ get_Honeydew()

static Color System::Drawing::Color::get_Honeydew ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFF0FFF0.

◆ get_HotPink()

static Color System::Drawing::Color::get_HotPink ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFF69B4.

◆ get_IndianRed()

static Color System::Drawing::Color::get_IndianRed ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFCD5C5C.

◆ get_Indigo()

static Color System::Drawing::Color::get_Indigo ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF4B0082.

◆ get_IsEmpty()

bool System::Drawing::Color::get_IsEmpty ( ) const

Returns a value that indicate if the current object is "empty" i.e. does not represent any color.

Returns
True if the current object does not represent any color, otherwise - false

◆ get_Ivory()

static Color System::Drawing::Color::get_Ivory ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFFFF0.

◆ get_Khaki()

static Color System::Drawing::Color::get_Khaki ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFF0E68C.

◆ get_Lavender()

static Color System::Drawing::Color::get_Lavender ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFE6E6FA.

◆ get_LavenderBlush()

static Color System::Drawing::Color::get_LavenderBlush ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFF0F5.

◆ get_LawnGreen()

static Color System::Drawing::Color::get_LawnGreen ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF7CFC00.

◆ get_LemonChiffon()

static Color System::Drawing::Color::get_LemonChiffon ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFFACD.

◆ get_LightBlue()

static Color System::Drawing::Color::get_LightBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFADD8E6.

◆ get_LightCoral()

static Color System::Drawing::Color::get_LightCoral ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFF08080.

◆ get_LightCyan()

static Color System::Drawing::Color::get_LightCyan ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFE0FFFF.

◆ get_LightGoldenrodYellow()

static Color System::Drawing::Color::get_LightGoldenrodYellow ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFAFAD2.

◆ get_LightGray()

static Color System::Drawing::Color::get_LightGray ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFD3D3D3.

◆ get_LightGreen()

static Color System::Drawing::Color::get_LightGreen ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF90EE90.

◆ get_LightPink()

static Color System::Drawing::Color::get_LightPink ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFB6C1.

◆ get_LightSalmon()

static Color System::Drawing::Color::get_LightSalmon ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFA07A.

◆ get_LightSeaGreen()

static Color System::Drawing::Color::get_LightSeaGreen ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF20B2AA.

◆ get_LightSkyBlue()

static Color System::Drawing::Color::get_LightSkyBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF87CEFA.

◆ get_LightSlateGray()

static Color System::Drawing::Color::get_LightSlateGray ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF778899.

◆ get_LightSteelBlue()

static Color System::Drawing::Color::get_LightSteelBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFB0C4DE.

◆ get_LightYellow()

static Color System::Drawing::Color::get_LightYellow ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFFFE0.

◆ get_Lime()

static Color System::Drawing::Color::get_Lime ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF00FF00.

◆ get_LimeGreen()

static Color System::Drawing::Color::get_LimeGreen ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF32CD32.

◆ get_Linen()

static Color System::Drawing::Color::get_Linen ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFAF0E6.

◆ get_Magenta()

static Color System::Drawing::Color::get_Magenta ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFF00FF.

◆ get_Maroon()

static Color System::Drawing::Color::get_Maroon ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF800000.

◆ get_MediumAquamarine()

static Color System::Drawing::Color::get_MediumAquamarine ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF66CDAA.

◆ get_MediumBlue()

static Color System::Drawing::Color::get_MediumBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF0000CD.

◆ get_MediumOrchid()

static Color System::Drawing::Color::get_MediumOrchid ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFBA55D3.

◆ get_MediumPurple()

static Color System::Drawing::Color::get_MediumPurple ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF9370DB.

◆ get_MediumSeaGreen()

static Color System::Drawing::Color::get_MediumSeaGreen ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF3CB371.

◆ get_MediumSlateBlue()

static Color System::Drawing::Color::get_MediumSlateBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF7B68EE.

◆ get_MediumSpringGreen()

static Color System::Drawing::Color::get_MediumSpringGreen ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF00FA9A.

◆ get_MediumTurquoise()

static Color System::Drawing::Color::get_MediumTurquoise ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF48D1CC.

◆ get_MediumVioletRed()

static Color System::Drawing::Color::get_MediumVioletRed ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFC71585.

◆ get_MidnightBlue()

static Color System::Drawing::Color::get_MidnightBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF191970.

◆ get_MintCream()

static Color System::Drawing::Color::get_MintCream ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFF5FFFA.

◆ get_MistyRose()

static Color System::Drawing::Color::get_MistyRose ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFE4E1.

◆ get_Moccasin()

static Color System::Drawing::Color::get_Moccasin ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFE4B5.

◆ get_Name()

String System::Drawing::Color::get_Name ( ) const

Returns the name of the color represented by the current object.

◆ get_NavajoWhite()

static Color System::Drawing::Color::get_NavajoWhite ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFDEAD.

◆ get_Navy()

static Color System::Drawing::Color::get_Navy ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF000080.

◆ get_OldLace()

static Color System::Drawing::Color::get_OldLace ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFDF5E6.

◆ get_Olive()

static Color System::Drawing::Color::get_Olive ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF808000.

◆ get_OliveDrab()

static Color System::Drawing::Color::get_OliveDrab ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF6B8E23.

◆ get_Orange()

static Color System::Drawing::Color::get_Orange ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFA500.

◆ get_OrangeRed()

static Color System::Drawing::Color::get_OrangeRed ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFF4500.

◆ get_Orchid()

static Color System::Drawing::Color::get_Orchid ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFDA70D6.

◆ get_PaleGoldenrod()

static Color System::Drawing::Color::get_PaleGoldenrod ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFEEE8AA.

◆ get_PaleGreen()

static Color System::Drawing::Color::get_PaleGreen ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF98FB98.

◆ get_PaleTurquoise()

static Color System::Drawing::Color::get_PaleTurquoise ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFAFEEEE.

◆ get_PaleVioletRed()

static Color System::Drawing::Color::get_PaleVioletRed ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFDB7093.

◆ get_PapayaWhip()

static Color System::Drawing::Color::get_PapayaWhip ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFEFD5.

◆ get_PeachPuff()

static Color System::Drawing::Color::get_PeachPuff ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFDAB9.

◆ get_Peru()

static Color System::Drawing::Color::get_Peru ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFCD853F.

◆ get_Pink()

static Color System::Drawing::Color::get_Pink ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFC0CB.

◆ get_Plum()

static Color System::Drawing::Color::get_Plum ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFDDA0DD.

◆ get_PowderBlue()

static Color System::Drawing::Color::get_PowderBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFB0E0E6.

◆ get_Purple()

static Color System::Drawing::Color::get_Purple ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF800080.

◆ get_R()

int System::Drawing::Color::get_R ( ) const

Returns the value of the red component of the color represented by the current object.

◆ get_Red()

static Color System::Drawing::Color::get_Red ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFF0000.

◆ get_RosyBrown()

static Color System::Drawing::Color::get_RosyBrown ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFBC8F8F.

◆ get_RoyalBlue()

static Color System::Drawing::Color::get_RoyalBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF4169E1.

◆ get_SaddleBrown()

static Color System::Drawing::Color::get_SaddleBrown ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF8B4513.

◆ get_Salmon()

static Color System::Drawing::Color::get_Salmon ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFA8072.

◆ get_SandyBrown()

static Color System::Drawing::Color::get_SandyBrown ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFF4A460.

◆ get_SeaGreen()

static Color System::Drawing::Color::get_SeaGreen ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF2E8B57.

◆ get_SeaShell()

static Color System::Drawing::Color::get_SeaShell ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFF5EE.

◆ get_Sienna()

static Color System::Drawing::Color::get_Sienna ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFA0522D.

◆ get_Silver()

static Color System::Drawing::Color::get_Silver ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFC0C0C0.

◆ get_SkyBlue()

static Color System::Drawing::Color::get_SkyBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF87CEEB.

◆ get_SlateBlue()

static Color System::Drawing::Color::get_SlateBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF6A5ACD.

◆ get_SlateGray()

static Color System::Drawing::Color::get_SlateGray ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF708090.

◆ get_Snow()

static Color System::Drawing::Color::get_Snow ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFFAFA.

◆ get_SpringGreen()

static Color System::Drawing::Color::get_SpringGreen ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF00FF7F.

◆ get_SteelBlue()

static Color System::Drawing::Color::get_SteelBlue ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF4682B4.

◆ get_Tan()

static Color System::Drawing::Color::get_Tan ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFD2B48C.

◆ get_Teal()

static Color System::Drawing::Color::get_Teal ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF008080.

◆ get_Thistle()

static Color System::Drawing::Color::get_Thistle ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFD8BFD8.

◆ get_Tomato()

static Color System::Drawing::Color::get_Tomato ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFF6347.

◆ get_Transparent()

static Color System::Drawing::Color::get_Transparent ( )
static

Returns a color whose ARGB value in hexadecimal notation is #00FFFFFF.

◆ get_Turquoise()

static Color System::Drawing::Color::get_Turquoise ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF40E0D0.

◆ get_Violet()

static Color System::Drawing::Color::get_Violet ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFEE82EE.

◆ get_Wheat()

static Color System::Drawing::Color::get_Wheat ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFF5DEB3.

◆ get_White()

static Color System::Drawing::Color::get_White ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFFFFF.

◆ get_WhiteSmoke()

static Color System::Drawing::Color::get_WhiteSmoke ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFF5F5F5.

◆ get_Yellow()

static Color System::Drawing::Color::get_Yellow ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FFFFFF00.

◆ get_YellowGreen()

static Color System::Drawing::Color::get_YellowGreen ( )
static

Returns a color whose ARGB value in hexadecimal notation is #FF9ACD32.

◆ GetBrightness()

float System::Drawing::Color::GetBrightness ( )

Returns the brightness component of the color reprsented by the current object.

◆ GetHashCode()

int System::Drawing::Color::GetHashCode ( ) const

Returns the hash code of the current object.

◆ IsNull()

bool System::Drawing::Color::IsNull ( ) const
inline

Always returns false.

◆ operator!=() [1/2]

bool System::Drawing::Color::operator!= ( const std::nullptr_t &  r) const
inline

Always returns true.

◆ operator!=() [2/2]

bool System::Drawing::Color::operator!= ( const Color r) const

Determines if the current and the specified Color objects represent distinct colors.

Parameters
rThe Color object to compare the current object with
Returns
True if the current and the specified objects represent distinct colors, otherwise - false

◆ operator==() [1/2]

bool System::Drawing::Color::operator== ( const std::nullptr_t &  r) const
inline

Always returns false.

◆ operator==() [2/2]

bool System::Drawing::Color::operator== ( const Color r) const

Determines if the current and the specified Color objects represent the same color.

Parameters
rThe Color object to compare the current object with
Returns
True if both the current and the specified objects represent the same color, otherwise - false

◆ ToArgb()

int System::Drawing::Color::ToArgb ( ) const
inline

Returns a 32-bit ARGB value of the color represented by the current object.

◆ ToString()

String System::Drawing::Color::ToString ( ) const

Returns the string representation of the current object.

Member Data Documentation

◆ Empty

const Color System::Drawing::Color::Empty
static

An "empty" instance of Color class i.e. an instance that does not represent any color.