Color

Color structure

Describes a fill or overlay color used in redaction options.

public struct Color : IEquatable<Color>

Properties

Name Description
static AliceBlue { get; } Gets the AliceBlue color.
static AntiqueWhite { get; } Gets the AntiqueWhite color.
static Aqua { get; } Gets the Aqua color.
static Aquamarine { get; } Gets the Aquamarine color.
static Azure { get; } Gets the Azure color.
static Beige { get; } Gets the Beige color.
static Bisque { get; } Gets the Bisque color.
static Black { get; } Gets the Black color.
static BlanchedAlmond { get; } Gets the BlanchedAlmond color.
static Blue { get; } Gets the Blue color.
static BlueViolet { get; } Gets the BlueViolet color.
static Brown { get; } Gets the Brown color.
static BurlyWood { get; } Gets the BurlyWood color.
static CadetBlue { get; } Gets the CadetBlue color.
static Chartreuse { get; } Gets the Chartreuse color.
static Chocolate { get; } Gets the Chocolate color.
static Coral { get; } Gets the Coral color.
static CornflowerBlue { get; } Gets the CornflowerBlue color.
static Cornsilk { get; } Gets the Cornsilk color.
static Crimson { get; } Gets the Crimson color.
static Cyan { get; } Gets the Cyan color.
static DarkBlue { get; } Gets the DarkBlue color.
static DarkCyan { get; } Gets the DarkCyan color.
static DarkGoldenrod { get; } Gets the DarkGoldenrod color.
static DarkGray { get; } Gets the DarkGray color.
static DarkGreen { get; } Gets the DarkGreen color.
static DarkKhaki { get; } Gets the DarkKhaki color.
static DarkMagenta { get; } Gets the DarkMagenta color.
static DarkOliveGreen { get; } Gets the DarkOliveGreen color.
static DarkOrange { get; } Gets the DarkOrange color.
static DarkOrchid { get; } Gets the DarkOrchid color.
static DarkRed { get; } Gets the DarkRed color.
static DarkSalmon { get; } Gets the DarkSalmon color.
static DarkSeaGreen { get; } Gets the DarkSeaGreen color.
static DarkSlateBlue { get; } Gets the DarkSlateBlue color.
static DarkSlateGray { get; } Gets the DarkSlateGray color.
static DarkTurquoise { get; } Gets the DarkTurquoise color.
static DarkViolet { get; } Gets the DarkViolet color.
static DeepPink { get; } Gets the DeepPink color.
static DeepSkyBlue { get; } Gets the DeepSkyBlue color.
static DimGray { get; } Gets the DimGray color.
static DodgerBlue { get; } Gets the DodgerBlue color.
static Firebrick { get; } Gets the Firebrick color.
static FloralWhite { get; } Gets the FloralWhite color.
static ForestGreen { get; } Gets the ForestGreen color.
static Fuchsia { get; } Gets the Fuchsia color.
static Gainsboro { get; } Gets the Gainsboro color.
static GhostWhite { get; } Gets the GhostWhite color.
static Gold { get; } Gets the Gold color.
static Goldenrod { get; } Gets the Goldenrod color.
static Gray { get; } Gets the Gray color.
static Green { get; } Gets the Green color.
static GreenYellow { get; } Gets the GreenYellow color.
static Honeydew { get; } Gets the Honeydew color.
static HotPink { get; } Gets the HotPink color.
static IndianRed { get; } Gets the IndianRed color.
static Indigo { get; } Gets the Indigo color.
static Ivory { get; } Gets the Ivory color.
static Khaki { get; } Gets the Khaki color.
static Lavender { get; } Gets the Lavender color.
static LavenderBlush { get; } Gets the LavenderBlush color.
static LawnGreen { get; } Gets the LawnGreen color.
static LemonChiffon { get; } Gets the LemonChiffon color.
static LightBlue { get; } Gets the LightBlue color.
static LightCoral { get; } Gets the LightCoral color.
static LightCyan { get; } Gets the LightCyan color.
static LightGoldenrodYellow { get; } Gets the LightGoldenrodYellow color.
static LightGray { get; } Gets the LightGray color.
static LightGreen { get; } Gets the LightGreen color.
static LightPink { get; } Gets the LightPink color.
static LightSalmon { get; } Gets the LightSalmon color.
static LightSeaGreen { get; } Gets the LightSeaGreen color.
static LightSkyBlue { get; } Gets the LightSkyBlue color.
static LightSlateGray { get; } Gets the LightSlateGray color.
static LightSteelBlue { get; } Gets the LightSteelBlue color.
static LightYellow { get; } Gets the LightYellow color.
static Lime { get; } Gets the Lime color.
static LimeGreen { get; } Gets the LimeGreen color.
static Linen { get; } Gets the Linen color.
static Magenta { get; } Gets the Magenta color.
static Maroon { get; } Gets the Maroon color.
static MediumAquamarine { get; } Gets the MediumAquamarine color.
static MediumBlue { get; } Gets the MediumBlue color.
static MediumOrchid { get; } Gets the MediumOrchid color.
static MediumPurple { get; } Gets the MediumPurple color.
static MediumSeaGreen { get; } Gets the MediumSeaGreen color.
static MediumSlateBlue { get; } Gets the MediumSlateBlue color.
static MediumSpringGreen { get; } Gets the MediumSpringGreen color.
static MediumTurquoise { get; } Gets the MediumTurquoise color.
static MediumVioletRed { get; } Gets the MediumVioletRed color.
static MidnightBlue { get; } Gets the MidnightBlue color.
static MintCream { get; } Gets the MintCream color.
static MistyRose { get; } Gets the MistyRose color.
static Moccasin { get; } Gets the Moccasin color.
static NavajoWhite { get; } Gets the NavajoWhite color.
static Navy { get; } Gets the Navy color.
static OldLace { get; } Gets the OldLace color.
static Olive { get; } Gets the Olive color.
static OliveDrab { get; } Gets the OliveDrab color.
static Orange { get; } Gets the Orange color.
static OrangeRed { get; } Gets the OrangeRed color.
static Orchid { get; } Gets the Orchid color.
static PaleGoldenrod { get; } Gets the PaleGoldenrod color.
static PaleGreen { get; } Gets the PaleGreen color.
static PaleTurquoise { get; } Gets the PaleTurquoise color.
static PaleVioletRed { get; } Gets the PaleVioletRed color.
static PapayaWhip { get; } Gets the PapayaWhip color.
static PeachPuff { get; } Gets the PeachPuff color.
static Peru { get; } Gets the Peru color.
static Pink { get; } Gets the Pink color.
static Plum { get; } Gets the Plum color.
static PowderBlue { get; } Gets the PowderBlue color.
static Purple { get; } Gets the Purple color.
static RebeccaPurple { get; } Gets the RebeccaPurple color.
static Red { get; } Gets the Red color.
static RosyBrown { get; } Gets the RosyBrown color.
static RoyalBlue { get; } Gets the RoyalBlue color.
static SaddleBrown { get; } Gets the SaddleBrown color.
static Salmon { get; } Gets the Salmon color.
static SandyBrown { get; } Gets the SandyBrown color.
static SeaGreen { get; } Gets the SeaGreen color.
static SeaShell { get; } Gets the SeaShell color.
static Sienna { get; } Gets the Sienna color.
static Silver { get; } Gets the Silver color.
static SkyBlue { get; } Gets the SkyBlue color.
static SlateBlue { get; } Gets the SlateBlue color.
static SlateGray { get; } Gets the SlateGray color.
static Snow { get; } Gets the Snow color.
static SpringGreen { get; } Gets the SpringGreen color.
static SteelBlue { get; } Gets the SteelBlue color.
static Tan { get; } Gets the Tan color.
static Teal { get; } Gets the Teal color.
static Thistle { get; } Gets the Thistle color.
static Tomato { get; } Gets the Tomato color.
static Transparent { get; } Gets the Transparent color.
static Turquoise { get; } Gets the Turquoise color.
static Violet { get; } Gets the Violet color.
static Wheat { get; } Gets the Wheat color.
static White { get; } Gets the White color.
static WhiteSmoke { get; } Gets the WhiteSmoke color.
static Yellow { get; } Gets the Yellow color.
static YellowGreen { get; } Gets the YellowGreen color.
A { get; } Opacity of the color. 0 is fully transparent, 255 is fully opaque.
B { get; } Blue channel intensity.
G { get; } Green channel intensity.
IsNamedColor { get; } Gets a value indicating whether this color is a known named color.
Name { get; } Gets the name of a known color, or the ARGB value in hexadecimal format if the color is not named.
R { get; } Red channel intensity.

Methods

Name Description
static FromArgb(int) Builds a color from a packed 32-bit value in ARGB order.
static FromArgb(int, int, int, int) Builds a color from separate channel values.
static FromName(string) Creates a color from the specified name of a known color. If name is not a known color name, an exception is thrown.
Equals(Color) Compares channel values with another redaction color.
override Equals(object) Compares this color with another object.
override GetHashCode() Returns a hash code based on the packed ARGB value.
ToArgb() Returns the color as a packed 32-bit ARGB value.
override ToString() Returns channel values in a readable form.

See Also