Color

Color class

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

public sealed class Color

Constructors

Name Description
Color() Default constructor.

Properties

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

Name Description
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 RGB 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

Name Description
static Empty Represents empty color.

See Also