Class Color

Color class

Represents class for color value which can be expressed in different color space.

public sealed class Color

Constructors

NameDescription
Color()Default constructor.

Properties

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

Methods

NameDescription
static FromArgb(int, int, int)Gets valid pdf Color object from RGB color components.
static FromArgb(int, int, int, int)Gets valid pdf Color object from RGB color components.
static FromCmyk(double, double, double, double)Gets valid pdf Color object from CMYK color components.
static FromGray(double)Gets valid pdf Color object from Gray color component.
static FromRgb(Color)Gets valid pdf Color object from System.Drawing.Color value.
static FromRgb(double, double, double)Gets valid pdf Color object from RGB color components.
static Parse(string)Extracts color components from the string.
override Equals(object)Returns true if two Colors are equal.
ToRgb()Converts color into rgb.
override ToString()Converts to string.
operator ==Returns true if two Colors are equal.
operator !=Returns true if two Colors are not equal.

Fields

NameDescription
static EmptyRepresents empty color.

See Also