Class Color
Inheritance
System.Object
Color
Assembly: IronWord.dll
Syntax
public class Color : Object
Constructors
Color(Int32, Int32, Int32)
Declaration
public Color(int red, int green, int blue)
Parameters
Type |
Name |
Description |
System.Int32 |
red |
|
System.Int32 |
green |
|
System.Int32 |
blue |
|
Color(Int32, Int32, Int32, Int32)
Declaration
public Color(int alpha, int red, int green, int blue)
Parameters
Type |
Name |
Description |
System.Int32 |
alpha |
|
System.Int32 |
red |
|
System.Int32 |
green |
|
System.Int32 |
blue |
|
Color(String)
Declaration
public Color(string color)
Parameters
Type |
Name |
Description |
System.String |
color |
|
Fields
Accent1
Declaration
public static readonly Color Accent1
Field Value
Accent2
Declaration
public static readonly Color Accent2
Field Value
Accent3
Declaration
public static readonly Color Accent3
Field Value
Accent4
Declaration
public static readonly Color Accent4
Field Value
Accent5
Declaration
public static readonly Color Accent5
Field Value
Accent6
Declaration
public static readonly Color Accent6
Field Value
AdditionalBackgroundColor
Declaration
public static readonly Color AdditionalBackgroundColor
Field Value
AdditionalTextColor
Declaration
public static readonly Color AdditionalTextColor
Field Value
AliceBlue
Declaration
public static readonly Color AliceBlue
Field Value
AntiqueWhite
Declaration
public static readonly Color AntiqueWhite
Field Value
Aqua
Declaration
public static readonly Color Aqua
Field Value
Aquamarine
Declaration
public static readonly Color Aquamarine
Field Value
AutoColor
Declaration
public static readonly Color AutoColor
Field Value
Azure
Declaration
public static readonly Color Azure
Field Value
Background1
Declaration
public static readonly Color Background1
Field Value
Background2
Declaration
public static readonly Color Background2
Field Value
BackgroundColor
Declaration
public static readonly Color BackgroundColor
Field Value
Beige
Declaration
public static readonly Color Beige
Field Value
Bisque
Declaration
public static readonly Color Bisque
Field Value
Black
Declaration
public static readonly Color Black
Field Value
BlanchedAlmond
Declaration
public static readonly Color BlanchedAlmond
Field Value
Blue
Declaration
public static readonly Color Blue
Field Value
BlueViolet
Declaration
public static readonly Color BlueViolet
Field Value
Brown
Declaration
public static readonly Color Brown
Field Value
BurlyWood
Declaration
public static readonly Color BurlyWood
Field Value
CadetBlue
Declaration
public static readonly Color CadetBlue
Field Value
Chartreuse
Declaration
public static readonly Color Chartreuse
Field Value
Chocolate
Declaration
public static readonly Color Chocolate
Field Value
Coral
Declaration
public static readonly Color Coral
Field Value
CornflowerBlue
Declaration
public static readonly Color CornflowerBlue
Field Value
Cornsilk
Declaration
public static readonly Color Cornsilk
Field Value
Crimson
Declaration
public static readonly Color Crimson
Field Value
Cyan
Declaration
public static readonly Color Cyan
Field Value
Dark1
Declaration
public static readonly Color Dark1
Field Value
Dark2
Declaration
public static readonly Color Dark2
Field Value
DarkBlue
Declaration
public static readonly Color DarkBlue
Field Value
DarkCyan
Declaration
public static readonly Color DarkCyan
Field Value
DarkGoldenrod
Declaration
public static readonly Color DarkGoldenrod
Field Value
DarkGray
Declaration
public static readonly Color DarkGray
Field Value
DarkGreen
Declaration
public static readonly Color DarkGreen
Field Value
DarkKhaki
Declaration
public static readonly Color DarkKhaki
Field Value
DarkMagenta
Declaration
public static readonly Color DarkMagenta
Field Value
DarkOliveGreen
Declaration
public static readonly Color DarkOliveGreen
Field Value
DarkOrange
Declaration
public static readonly Color DarkOrange
Field Value
DarkOrchid
Declaration
public static readonly Color DarkOrchid
Field Value
DarkRed
Declaration
public static readonly Color DarkRed
Field Value
DarkSalmon
Declaration
public static readonly Color DarkSalmon
Field Value
DarkSeaGreen
Declaration
public static readonly Color DarkSeaGreen
Field Value
DarkSlateBlue
Declaration
public static readonly Color DarkSlateBlue
Field Value
DarkSlateGray
Declaration
public static readonly Color DarkSlateGray
Field Value
DarkTurquoise
Declaration
public static readonly Color DarkTurquoise
Field Value
DarkViolet
Declaration
public static readonly Color DarkViolet
Field Value
DeepPink
Declaration
public static readonly Color DeepPink
Field Value
DeepSkyBlue
Declaration
public static readonly Color DeepSkyBlue
Field Value
DimGray
Declaration
public static readonly Color DimGray
Field Value
DodgerBlue
Declaration
public static readonly Color DodgerBlue
Field Value
Empty
Declaration
public static readonly Color Empty
Field Value
Declaration
public static readonly Color ExtraSchemeColor1
Field Value
Declaration
public static readonly Color ExtraSchemeColor2
Field Value
Declaration
public static readonly Color ExtraSchemeColor3
Field Value
Declaration
public static readonly Color ExtraSchemeColor4
Field Value
Declaration
public static readonly Color ExtraSchemeColor5
Field Value
Declaration
public static readonly Color ExtraSchemeColor6
Field Value
Firebrick
Declaration
public static readonly Color Firebrick
Field Value
FloralWhite
Declaration
public static readonly Color FloralWhite
Field Value
FollowedHyperlink
Declaration
public static readonly Color FollowedHyperlink
Field Value
ForestGreen
Declaration
public static readonly Color ForestGreen
Field Value
Fuchsia
Declaration
public static readonly Color Fuchsia
Field Value
Gainsboro
Declaration
public static readonly Color Gainsboro
Field Value
GhostWhite
Declaration
public static readonly Color GhostWhite
Field Value
Gold
Declaration
public static readonly Color Gold
Field Value
Goldenrod
Declaration
public static readonly Color Goldenrod
Field Value
Gray
Declaration
public static readonly Color Gray
Field Value
Green
Declaration
public static readonly Color Green
Field Value
GreenYellow
Declaration
public static readonly Color GreenYellow
Field Value
Honeydew
Declaration
public static readonly Color Honeydew
Field Value
HotPink
Declaration
public static readonly Color HotPink
Field Value
Hyperlink
Declaration
public static readonly Color Hyperlink
Field Value
HyperlinkColor
Declaration
public static readonly Color HyperlinkColor
Field Value
IndianRed
Declaration
public static readonly Color IndianRed
Field Value
Indigo
Declaration
public static readonly Color Indigo
Field Value
Ivory
Declaration
public static readonly Color Ivory
Field Value
Khaki
Declaration
public static readonly Color Khaki
Field Value
Lavender
Declaration
public static readonly Color Lavender
Field Value
LavenderBlush
Declaration
public static readonly Color LavenderBlush
Field Value
LawnGreen
Declaration
public static readonly Color LawnGreen
Field Value
LemonChiffon
Declaration
public static readonly Color LemonChiffon
Field Value
Light1
Declaration
public static readonly Color Light1
Field Value
Light2
Declaration
public static readonly Color Light2
Field Value
LightBlue
Declaration
public static readonly Color LightBlue
Field Value
LightCoral
Declaration
public static readonly Color LightCoral
Field Value
LightCyan
Declaration
public static readonly Color LightCyan
Field Value
LightGoldenrodYellow
Declaration
public static readonly Color LightGoldenrodYellow
Field Value
LightGray
Declaration
public static readonly Color LightGray
Field Value
LightGreen
Declaration
public static readonly Color LightGreen
Field Value
LightPink
Declaration
public static readonly Color LightPink
Field Value
LightSalmon
Declaration
public static readonly Color LightSalmon
Field Value
LightSeaGreen
Declaration
public static readonly Color LightSeaGreen
Field Value
LightSkyBlue
Declaration
public static readonly Color LightSkyBlue
Field Value
LightSlateGray
Declaration
public static readonly Color LightSlateGray
Field Value
LightSteelBlue
Declaration
public static readonly Color LightSteelBlue
Field Value
LightYellow
Declaration
public static readonly Color LightYellow
Field Value
Lime
Declaration
public static readonly Color Lime
Field Value
LimeGreen
Declaration
public static readonly Color LimeGreen
Field Value
Linen
Declaration
public static readonly Color Linen
Field Value
Magenta
Declaration
public static readonly Color Magenta
Field Value
MainDarkColor1
Declaration
public static readonly Color MainDarkColor1
Field Value
MainDarkColor2
Declaration
public static readonly Color MainDarkColor2
Field Value
MainLightColor1
Declaration
public static readonly Color MainLightColor1
Field Value
MainLightColor2
Declaration
public static readonly Color MainLightColor2
Field Value
Maroon
Declaration
public static readonly Color Maroon
Field Value
MediumAquamarine
Declaration
public static readonly Color MediumAquamarine
Field Value
MediumBlue
Declaration
public static readonly Color MediumBlue
Field Value
MediumOrchid
Declaration
public static readonly Color MediumOrchid
Field Value
MediumPurple
Declaration
public static readonly Color MediumPurple
Field Value
MediumSeaGreen
Declaration
public static readonly Color MediumSeaGreen
Field Value
MediumSlateBlue
Declaration
public static readonly Color MediumSlateBlue
Field Value
MediumSpringGreen
Declaration
public static readonly Color MediumSpringGreen
Field Value
MediumTurquoise
Declaration
public static readonly Color MediumTurquoise
Field Value
MediumVioletRed
Declaration
public static readonly Color MediumVioletRed
Field Value
MidnightBlue
Declaration
public static readonly Color MidnightBlue
Field Value
MintCream
Declaration
public static readonly Color MintCream
Field Value
MistyRose
Declaration
public static readonly Color MistyRose
Field Value
Moccasin
Declaration
public static readonly Color Moccasin
Field Value
NavajoWhite
Declaration
public static readonly Color NavajoWhite
Field Value
Navy
Declaration
public static readonly Color Navy
Field Value
None
Declaration
public static readonly Color None
Field Value
OldLace
Declaration
public static readonly Color OldLace
Field Value
Olive
Declaration
public static readonly Color Olive
Field Value
OliveDrab
Declaration
public static readonly Color OliveDrab
Field Value
Orange
Declaration
public static readonly Color Orange
Field Value
OrangeRed
Declaration
public static readonly Color OrangeRed
Field Value
Orchid
Declaration
public static readonly Color Orchid
Field Value
PaleGoldenrod
Declaration
public static readonly Color PaleGoldenrod
Field Value
PaleGreen
Declaration
public static readonly Color PaleGreen
Field Value
PaleTurquoise
Declaration
public static readonly Color PaleTurquoise
Field Value
PaleVioletRed
Declaration
public static readonly Color PaleVioletRed
Field Value
PapayaWhip
Declaration
public static readonly Color PapayaWhip
Field Value
PeachPuff
Declaration
public static readonly Color PeachPuff
Field Value
Peru
Declaration
public static readonly Color Peru
Field Value
Pink
Declaration
public static readonly Color Pink
Field Value
Plum
Declaration
public static readonly Color Plum
Field Value
PowderBlue
Declaration
public static readonly Color PowderBlue
Field Value
Purple
Declaration
public static readonly Color Purple
Field Value
RebeccaPurple
Declaration
public static readonly Color RebeccaPurple
Field Value
Red
Declaration
public static readonly Color Red
Field Value
RosyBrown
Declaration
public static readonly Color RosyBrown
Field Value
RoyalBlue
Declaration
public static readonly Color RoyalBlue
Field Value
SaddleBrown
Declaration
public static readonly Color SaddleBrown
Field Value
Salmon
Declaration
public static readonly Color Salmon
Field Value
SandyBrown
Declaration
public static readonly Color SandyBrown
Field Value
SeaGreen
Declaration
public static readonly Color SeaGreen
Field Value
SeaShell
Declaration
public static readonly Color SeaShell
Field Value
Sienna
Declaration
public static readonly Color Sienna
Field Value
Silver
Declaration
public static readonly Color Silver
Field Value
SkyBlue
Declaration
public static readonly Color SkyBlue
Field Value
SlateBlue
Declaration
public static readonly Color SlateBlue
Field Value
SlateGray
Declaration
public static readonly Color SlateGray
Field Value
Snow
Declaration
public static readonly Color Snow
Field Value
SpringGreen
Declaration
public static readonly Color SpringGreen
Field Value
SteelBlue
Declaration
public static readonly Color SteelBlue
Field Value
Tan
Declaration
public static readonly Color Tan
Field Value
Teal
Declaration
public static readonly Color Teal
Field Value
Text1
Declaration
public static readonly Color Text1
Field Value
Text2
Declaration
public static readonly Color Text2
Field Value
TextColor
Declaration
public static readonly Color TextColor
Field Value
Thistle
Declaration
public static readonly Color Thistle
Field Value
Tomato
Declaration
public static readonly Color Tomato
Field Value
Transparent
Declaration
public static readonly Color Transparent
Field Value
Turquoise
Declaration
public static readonly Color Turquoise
Field Value
Violet
Declaration
public static readonly Color Violet
Field Value
Wheat
Declaration
public static readonly Color Wheat
Field Value
White
Declaration
public static readonly Color White
Field Value
WhiteSmoke
Declaration
public static readonly Color WhiteSmoke
Field Value
Yellow
Declaration
public static readonly Color Yellow
Field Value
YellowGreen
Declaration
public static readonly Color YellowGreen
Field Value
Properties
A
Declaration
Property Value
Type |
Description |
System.Byte |
|
B
Declaration
Property Value
Type |
Description |
System.Byte |
|
ColorType
Declaration
public ColorTypeValues ColorType { get; set; }
Property Value
ColorValue
Declaration
public string ColorValue { get; }
Property Value
Type |
Description |
System.String |
|
G
Declaration
Property Value
Type |
Description |
System.Byte |
|
LuminanceModulation
Declaration
public Nullable<int> LuminanceModulation { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
LuminanceOffset
Declaration
public Nullable<int> LuminanceOffset { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
R
Declaration
Property Value
Type |
Description |
System.Byte |
|
SaturationModulation
Declaration
public Nullable<int> SaturationModulation { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
SchemaColor
Declaration
public SchemeColorValues SchemaColor { get; }
Property Value
ThemeColorValue
Declaration
public ThemeColorValues ThemeColorValue { get; }
Property Value
Methods
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
FromArgb(Int32)
Declaration
public static Color FromArgb(int argb)
Parameters
Type |
Name |
Description |
System.Int32 |
argb |
|
Returns
FromArgb(Int32, Color)
Declaration
public static Color FromArgb(int alpha, Color baseColor)
Parameters
Type |
Name |
Description |
System.Int32 |
alpha |
|
Color |
baseColor |
|
Returns
FromArgb(Int32, Int32, Int32)
Declaration
public static Color FromArgb(int red, int green, int blue)
Parameters
Type |
Name |
Description |
System.Int32 |
red |
|
System.Int32 |
green |
|
System.Int32 |
blue |
|
Returns
FromArgb(Int32, Int32, Int32, Int32)
Declaration
public static Color FromArgb(int alpha, int red, int green, int blue)
Parameters
Type |
Name |
Description |
System.Int32 |
alpha |
|
System.Int32 |
red |
|
System.Int32 |
green |
|
System.Int32 |
blue |
|
Returns
GetBrightness()
Declaration
public double GetBrightness()
Returns
Type |
Description |
System.Double |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
GetLuminance()
Declaration
public double GetLuminance()
Returns
Type |
Description |
System.Double |
|
SetAlpha(Int32)
Declaration
public void SetAlpha(int alpha)
Parameters
Type |
Name |
Description |
System.Int32 |
alpha |
|
ToArgb()
Declaration
Returns
Type |
Description |
System.Int32 |
|
ToHtmlCssColorCode()
Declaration
public string ToHtmlCssColorCode()
Returns
Type |
Description |
System.String |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Operators
Equality(Color, Color)
Declaration
public static bool operator ==(Color left, Color right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implicit(Color to Color)
Declaration
public static implicit operator Color(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Color |
|
Declaration
public static implicit operator Abgr32(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns
Type |
Description |
SixLabors.ImageSharp.PixelFormats.Abgr32 |
|
Declaration
public static implicit operator Argb32(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns
Type |
Description |
SixLabors.ImageSharp.PixelFormats.Argb32 |
|
Declaration
public static implicit operator Bgr24(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns
Type |
Description |
SixLabors.ImageSharp.PixelFormats.Bgr24 |
|
Declaration
public static implicit operator Bgra32(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns
Type |
Description |
SixLabors.ImageSharp.PixelFormats.Bgra32 |
|
Declaration
public static implicit operator Rgb24(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns
Type |
Description |
SixLabors.ImageSharp.PixelFormats.Rgb24 |
|
Declaration
public static implicit operator Rgb48(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns
Type |
Description |
SixLabors.ImageSharp.PixelFormats.Rgb48 |
|
Declaration
public static implicit operator Rgba32(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns
Type |
Description |
SixLabors.ImageSharp.PixelFormats.Rgba32 |
|
Declaration
public static implicit operator Rgba64(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns
Type |
Description |
SixLabors.ImageSharp.PixelFormats.Rgba64 |
|
Implicit(Color to Color)
Declaration
public static implicit operator Color(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns
Type |
Description |
System.Drawing.Color |
|
Implicit(Color to Color)
Declaration
public static implicit operator Color(Color color)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Color |
color |
|
Returns
Declaration
public static implicit operator Color(Abgr32 color)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.PixelFormats.Abgr32 |
color |
|
Returns
Declaration
public static implicit operator Color(Argb32 color)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.PixelFormats.Argb32 |
color |
|
Returns
Declaration
public static implicit operator Color(Bgr24 color)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.PixelFormats.Bgr24 |
color |
|
Returns
Declaration
public static implicit operator Color(Bgra32 color)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.PixelFormats.Bgra32 |
color |
|
Returns
Declaration
public static implicit operator Color(Rgb24 color)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.PixelFormats.Rgb24 |
color |
|
Returns
Declaration
public static implicit operator Color(Rgb48 color)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.PixelFormats.Rgb48 |
color |
|
Returns
Declaration
public static implicit operator Color(Rgba32 color)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.PixelFormats.Rgba32 |
color |
|
Returns
Declaration
public static implicit operator Color(Rgba64 color)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.PixelFormats.Rgba64 |
color |
|
Returns
Implicit(Color to Color)
Declaration
public static implicit operator Color(Color color)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
color |
|
Returns
Inequality(Color, Color)
Declaration
public static bool operator !=(Color left, Color right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Extension Methods