Class DrawingColor
A Color that is used for Shapes, Charts and other drawing objects.
Inheritance
System.Object
DrawingColor
Assembly: DRIT.Spreadsheet.dll
Syntax
public class DrawingColor : object
Constructors
DrawingColor(Byte, Byte, Byte)
Declaration
public DrawingColor(byte r, byte g, byte b)
Parameters
Type |
Name |
Description |
System.Byte |
r |
|
System.Byte |
g |
|
System.Byte |
b |
|
DrawingColor(Color)
Declaration
public DrawingColor(Color color)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
color |
|
DrawingColor(Single, Single, Single)
Declaration
public DrawingColor(float r, float g, float b)
Parameters
Type |
Name |
Description |
System.Single |
r |
|
System.Single |
g |
|
System.Single |
b |
|
DrawingColor(String)
Declaration
public DrawingColor(string hexColor)
Parameters
Type |
Name |
Description |
System.String |
hexColor |
|
Properties
A
Declaration
Property Value
Type |
Description |
System.Byte |
|
Accent1
Declaration
public static DrawingColor Accent1 { get; }
Property Value
Accent2
Declaration
public static DrawingColor Accent2 { get; }
Property Value
Accent3
Declaration
public static DrawingColor Accent3 { get; }
Property Value
Accent4
Declaration
public static DrawingColor Accent4 { get; }
Property Value
Accent5
Declaration
public static DrawingColor Accent5 { get; }
Property Value
Accent6
Declaration
public static DrawingColor Accent6 { get; }
Property Value
ActiveBorder
Declaration
public static DrawingColor ActiveBorder { get; }
Property Value
ActiveCaption
Declaration
public static DrawingColor ActiveCaption { get; }
Property Value
AliceBlue
Declaration
public static DrawingColor AliceBlue { get; }
Property Value
AntiqueWhite
Declaration
public static DrawingColor AntiqueWhite { get; }
Property Value
AppWorkspace
Declaration
public static DrawingColor AppWorkspace { get; }
Property Value
Aqua
Declaration
public static DrawingColor Aqua { get; }
Property Value
Aquamarine
Declaration
public static DrawingColor Aquamarine { get; }
Property Value
Azure
Declaration
public static DrawingColor Azure { get; }
Property Value
B
Declaration
Property Value
Type |
Description |
System.Byte |
|
Background
Declaration
public static DrawingColor Background { get; }
Property Value
Background1
Declaration
public static DrawingColor Background1 { get; }
Property Value
Background2
Declaration
public static DrawingColor Background2 { get; }
Property Value
Beige
Declaration
public static DrawingColor Beige { get; }
Property Value
Bisque
Declaration
public static DrawingColor Bisque { get; }
Property Value
Black
Declaration
public static DrawingColor Black { get; }
Property Value
BlanchedAlmond
Declaration
public static DrawingColor BlanchedAlmond { get; }
Property Value
Blue
Declaration
public static DrawingColor Blue { get; }
Property Value
BlueViolet
Declaration
public static DrawingColor BlueViolet { get; }
Property Value
Brown
Declaration
public static DrawingColor Brown { get; }
Property Value
BurlyWood
Declaration
public static DrawingColor BurlyWood { get; }
Property Value
Declaration
public static DrawingColor ButtonFace { get; }
Property Value
Declaration
public static DrawingColor ButtonHighlight { get; }
Property Value
Declaration
public static DrawingColor ButtonShadow { get; }
Property Value
ButtonText
Declaration
public static DrawingColor ButtonText { get; }
Property Value
CadetBlue
Declaration
public static DrawingColor CadetBlue { get; }
Property Value
CaptionText
Declaration
public static DrawingColor CaptionText { get; }
Property Value
Chartreuse
Declaration
public static DrawingColor Chartreuse { get; }
Property Value
Chocolate
Declaration
public static DrawingColor Chocolate { get; }
Property Value
Coral
Declaration
public static DrawingColor Coral { get; }
Property Value
CornflowerBlue
Declaration
public static DrawingColor CornflowerBlue { get; }
Property Value
Cornsilk
Declaration
public static DrawingColor Cornsilk { get; }
Property Value
Crimson
Declaration
public static DrawingColor Crimson { get; }
Property Value
Cyan
Declaration
public static DrawingColor Cyan { get; }
Property Value
Dark1
Declaration
public static DrawingColor Dark1 { get; }
Property Value
Dark2
Declaration
public static DrawingColor Dark2 { get; }
Property Value
DarkBlue
Declaration
public static DrawingColor DarkBlue { get; }
Property Value
DarkCyan
Declaration
public static DrawingColor DarkCyan { get; }
Property Value
DarkGoldenrod
Declaration
public static DrawingColor DarkGoldenrod { get; }
Property Value
DarkGray
Declaration
public static DrawingColor DarkGray { get; }
Property Value
DarkGreen
Declaration
public static DrawingColor DarkGreen { get; }
Property Value
DarkKhaki
Declaration
public static DrawingColor DarkKhaki { get; }
Property Value
DarkMagenta
Declaration
public static DrawingColor DarkMagenta { get; }
Property Value
DarkOliveGreen
Declaration
public static DrawingColor DarkOliveGreen { get; }
Property Value
DarkOrange
Declaration
public static DrawingColor DarkOrange { get; }
Property Value
DarkOrchid
Declaration
public static DrawingColor DarkOrchid { get; }
Property Value
DarkRed
Declaration
public static DrawingColor DarkRed { get; }
Property Value
DarkSalmon
Declaration
public static DrawingColor DarkSalmon { get; }
Property Value
DarkSeaGreen
Declaration
public static DrawingColor DarkSeaGreen { get; }
Property Value
DarkShadow3D
Declaration
public static DrawingColor DarkShadow3D { get; }
Property Value
DarkSlateBlue
Declaration
public static DrawingColor DarkSlateBlue { get; }
Property Value
DarkSlateGray
Declaration
public static DrawingColor DarkSlateGray { get; }
Property Value
DarkTurquoise
Declaration
public static DrawingColor DarkTurquoise { get; }
Property Value
DarkViolet
Declaration
public static DrawingColor DarkViolet { get; }
Property Value
DeepPink
Declaration
public static DrawingColor DeepPink { get; }
Property Value
DeepSkyBlue
Declaration
public static DrawingColor DeepSkyBlue { get; }
Property Value
DimGray
Declaration
public static DrawingColor DimGray { get; }
Property Value
DodgerBlue
Declaration
public static DrawingColor DodgerBlue { get; }
Property Value
Firebrick
Declaration
public static DrawingColor Firebrick { get; }
Property Value
FloralWhite
Declaration
public static DrawingColor FloralWhite { get; }
Property Value
FollowedHyperlink
Declaration
public static DrawingColor FollowedHyperlink { get; }
Property Value
ForestGreen
Declaration
public static DrawingColor ForestGreen { get; }
Property Value
Fuchsia
Declaration
public static DrawingColor Fuchsia { get; }
Property Value
G
Declaration
Property Value
Type |
Description |
System.Byte |
|
Gainsboro
Declaration
public static DrawingColor Gainsboro { get; }
Property Value
GhostWhite
Declaration
public static DrawingColor GhostWhite { get; }
Property Value
Gold
Declaration
public static DrawingColor Gold { get; }
Property Value
Goldenrod
Declaration
public static DrawingColor Goldenrod { get; }
Property Value
GradientActiveCaption
Declaration
public static DrawingColor GradientActiveCaption { get; }
Property Value
GradientInactiveCaption
Declaration
public static DrawingColor GradientInactiveCaption { get; }
Property Value
Gray
Declaration
public static DrawingColor Gray { get; }
Property Value
GrayText
Declaration
public static DrawingColor GrayText { get; }
Property Value
Green
Declaration
public static DrawingColor Green { get; }
Property Value
GreenYellow
Declaration
public static DrawingColor GreenYellow { get; }
Property Value
H
Declaration
Property Value
Type |
Description |
System.Double |
|
HexColor
Declaration
public string HexColor { get; }
Property Value
Type |
Description |
System.String |
|
Highlight
Declaration
public static DrawingColor Highlight { get; }
Property Value
HighlightText
Declaration
public static DrawingColor HighlightText { get; }
Property Value
Honeydew
Declaration
public static DrawingColor Honeydew { get; }
Property Value
HotLight
Declaration
public static DrawingColor HotLight { get; }
Property Value
HotPink
Declaration
public static DrawingColor HotPink { get; }
Property Value
Hyperlink
Declaration
public static DrawingColor Hyperlink { get; }
Property Value
InactiveBorder
Declaration
public static DrawingColor InactiveBorder { get; }
Property Value
InactiveCaption
Declaration
public static DrawingColor InactiveCaption { get; }
Property Value
InactiveCaptionText
Declaration
public static DrawingColor InactiveCaptionText { get; }
Property Value
IndianRed
Declaration
public static DrawingColor IndianRed { get; }
Property Value
Indigo
Declaration
public static DrawingColor Indigo { get; }
Property Value
InfoBk
Declaration
public static DrawingColor InfoBk { get; }
Property Value
InfoText
Declaration
public static DrawingColor InfoText { get; }
Property Value
Ivory
Declaration
public static DrawingColor Ivory { get; }
Property Value
Khaki
Declaration
public static DrawingColor Khaki { get; }
Property Value
L
Declaration
Property Value
Type |
Description |
System.Double |
|
Lavender
Declaration
public static DrawingColor Lavender { get; }
Property Value
LavenderBlush
Declaration
public static DrawingColor LavenderBlush { get; }
Property Value
LawnGreen
Declaration
public static DrawingColor LawnGreen { get; }
Property Value
LemonChiffon
Declaration
public static DrawingColor LemonChiffon { get; }
Property Value
Light1
Declaration
public static DrawingColor Light1 { get; }
Property Value
Light2
Declaration
public static DrawingColor Light2 { get; }
Property Value
Light3D
Declaration
public static DrawingColor Light3D { get; }
Property Value
LightBlue
Declaration
public static DrawingColor LightBlue { get; }
Property Value
LightCoral
Declaration
public static DrawingColor LightCoral { get; }
Property Value
LightCyan
Declaration
public static DrawingColor LightCyan { get; }
Property Value
LightGoldenrodYellow
Declaration
public static DrawingColor LightGoldenrodYellow { get; }
Property Value
LightGray
Declaration
public static DrawingColor LightGray { get; }
Property Value
LightGreen
Declaration
public static DrawingColor LightGreen { get; }
Property Value
LightPink
Declaration
public static DrawingColor LightPink { get; }
Property Value
LightSalmon
Declaration
public static DrawingColor LightSalmon { get; }
Property Value
LightSeaGreen
Declaration
public static DrawingColor LightSeaGreen { get; }
Property Value
LightSkyBlue
Declaration
public static DrawingColor LightSkyBlue { get; }
Property Value
LightSlateGray
Declaration
public static DrawingColor LightSlateGray { get; }
Property Value
LightSteelBlue
Declaration
public static DrawingColor LightSteelBlue { get; }
Property Value
LightYellow
Declaration
public static DrawingColor LightYellow { get; }
Property Value
Lime
Declaration
public static DrawingColor Lime { get; }
Property Value
LimeGreen
Declaration
public static DrawingColor LimeGreen { get; }
Property Value
Linen
Declaration
public static DrawingColor Linen { get; }
Property Value
Magenta
Declaration
public static DrawingColor Magenta { get; }
Property Value
Maroon
Declaration
public static DrawingColor Maroon { get; }
Property Value
MediumAquamarine
Declaration
public static DrawingColor MediumAquamarine { get; }
Property Value
MediumBlue
Declaration
public static DrawingColor MediumBlue { get; }
Property Value
MediumOrchid
Declaration
public static DrawingColor MediumOrchid { get; }
Property Value
MediumPurple
Declaration
public static DrawingColor MediumPurple { get; }
Property Value
MediumSeaGreen
Declaration
public static DrawingColor MediumSeaGreen { get; }
Property Value
MediumSlateBlue
Declaration
public static DrawingColor MediumSlateBlue { get; }
Property Value
MediumSpringGreen
Declaration
public static DrawingColor MediumSpringGreen { get; }
Property Value
MediumTurquoise
Declaration
public static DrawingColor MediumTurquoise { get; }
Property Value
MediumVioletRed
Declaration
public static DrawingColor MediumVioletRed { get; }
Property Value
Declaration
public static DrawingColor Menu { get; }
Property Value
Declaration
public static DrawingColor MenuBar { get; }
Property Value
Declaration
public static DrawingColor MenuHighlight { get; }
Property Value
Declaration
public static DrawingColor MenuText { get; }
Property Value
MidnightBlue
Declaration
public static DrawingColor MidnightBlue { get; }
Property Value
MintCream
Declaration
public static DrawingColor MintCream { get; }
Property Value
MistyRose
Declaration
public static DrawingColor MistyRose { get; }
Property Value
Moccasin
Declaration
public static DrawingColor Moccasin { get; }
Property Value
NavajoWhite
Declaration
public static DrawingColor NavajoWhite { get; }
Property Value
Navy
Declaration
public static DrawingColor Navy { get; }
Property Value
OldLace
Declaration
public static DrawingColor OldLace { get; }
Property Value
Olive
Declaration
public static DrawingColor Olive { get; }
Property Value
OliveDrab
Declaration
public static DrawingColor OliveDrab { get; }
Property Value
Orange
Declaration
public static DrawingColor Orange { get; }
Property Value
OrangeRed
Declaration
public static DrawingColor OrangeRed { get; }
Property Value
Orchid
Declaration
public static DrawingColor Orchid { get; }
Property Value
PaleGoldenrod
Declaration
public static DrawingColor PaleGoldenrod { get; }
Property Value
PaleGreen
Declaration
public static DrawingColor PaleGreen { get; }
Property Value
PaleTurquoise
Declaration
public static DrawingColor PaleTurquoise { get; }
Property Value
PaleVioletRed
Declaration
public static DrawingColor PaleVioletRed { get; }
Property Value
PapayaWhip
Declaration
public static DrawingColor PapayaWhip { get; }
Property Value
PeachPuff
Declaration
public static DrawingColor PeachPuff { get; }
Property Value
Peru
Declaration
public static DrawingColor Peru { get; }
Property Value
Pink
Declaration
public static DrawingColor Pink { get; }
Property Value
Plum
Declaration
public static DrawingColor Plum { get; }
Property Value
PowderBlue
Declaration
public static DrawingColor PowderBlue { get; }
Property Value
Purple
Declaration
public static DrawingColor Purple { get; }
Property Value
R
Declaration
Property Value
Type |
Description |
System.Byte |
|
Red
Declaration
public static DrawingColor Red { get; }
Property Value
RosyBrown
Declaration
public static DrawingColor RosyBrown { get; }
Property Value
RoyalBlue
Declaration
public static DrawingColor RoyalBlue { get; }
Property Value
S
Declaration
Property Value
Type |
Description |
System.Double |
|
SaddleBrown
Declaration
public static DrawingColor SaddleBrown { get; }
Property Value
Salmon
Declaration
public static DrawingColor Salmon { get; }
Property Value
SandyBrown
Declaration
public static DrawingColor SandyBrown { get; }
Property Value
Declaration
public static DrawingColor ScrollBar { get; }
Property Value
SeaGreen
Declaration
public static DrawingColor SeaGreen { get; }
Property Value
SeaShell
Declaration
public static DrawingColor SeaShell { get; }
Property Value
Sienna
Declaration
public static DrawingColor Sienna { get; }
Property Value
Silver
Declaration
public static DrawingColor Silver { get; }
Property Value
SkyBlue
Declaration
public static DrawingColor SkyBlue { get; }
Property Value
SlateBlue
Declaration
public static DrawingColor SlateBlue { get; }
Property Value
SlateGray
Declaration
public static DrawingColor SlateGray { get; }
Property Value
Snow
Declaration
public static DrawingColor Snow { get; }
Property Value
SpringGreen
Declaration
public static DrawingColor SpringGreen { get; }
Property Value
SteelBlue
Declaration
public static DrawingColor SteelBlue { get; }
Property Value
Style
Declaration
public static DrawingColor Style { get; }
Property Value
SystemColor
Declaration
public SystemColorValue? SystemColor { get; }
Property Value
Tan
Declaration
public static DrawingColor Tan { get; }
Property Value
Teal
Declaration
public static DrawingColor Teal { get; }
Property Value
Text1
Declaration
public static DrawingColor Text1 { get; }
Property Value
Text2
Declaration
public static DrawingColor Text2 { get; }
Property Value
Theme
Declaration
public ThemeColor? Theme { get; }
Property Value
Thistle
Declaration
public static DrawingColor Thistle { get; }
Property Value
Tomato
Declaration
public static DrawingColor Tomato { get; }
Property Value
Declaration
public List<ColorTransform> Transforms { get; }
Property Value
Turquoise
Declaration
public static DrawingColor Turquoise { get; }
Property Value
Type
Declaration
public DrawingColorType Type { get; }
Property Value
Violet
Declaration
public static DrawingColor Violet { get; }
Property Value
Wheat
Declaration
public static DrawingColor Wheat { get; }
Property Value
White
Declaration
public static DrawingColor White { get; }
Property Value
WhiteSmoke
Declaration
public static DrawingColor WhiteSmoke { get; }
Property Value
Window
Declaration
public static DrawingColor Window { get; }
Property Value
WindowFrame
Declaration
public static DrawingColor WindowFrame { get; }
Property Value
WindowText
Declaration
public static DrawingColor WindowText { get; }
Property Value
Yellow
Declaration
public static DrawingColor Yellow { get; }
Property Value
YellowGreen
Declaration
public static DrawingColor YellowGreen { get; }
Property Value
Methods
Equals(DrawingColor)
Declaration
protected bool Equals(DrawingColor other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
FromArgb(Byte, Byte, Byte, Byte)
Declaration
public static DrawingColor FromArgb(byte a, byte r, byte g, byte b)
Parameters
Type |
Name |
Description |
System.Byte |
a |
|
System.Byte |
r |
|
System.Byte |
g |
|
System.Byte |
b |
|
Returns
FromColorName(String)
Declaration
public static DrawingColor FromColorName(string colorName)
Parameters
Type |
Name |
Description |
System.String |
colorName |
|
Returns
FromHex(String)
Declaration
public static DrawingColor FromHex(string hex)
Parameters
Type |
Name |
Description |
System.String |
hex |
|
Returns
FromHsl(Double, Double, Double)
Declaration
public static DrawingColor FromHsl(double hue, double saturation, double luminance)
Parameters
Type |
Name |
Description |
System.Double |
hue |
|
System.Double |
saturation |
|
System.Double |
luminance |
|
Returns
FromHslColor(Hsl)
Declaration
public static ARgb FromHslColor(Hsl hsl)
Parameters
Type |
Name |
Description |
Hsl |
hsl |
|
Returns
FromRgb(Byte, Byte, Byte)
Declaration
public static DrawingColor FromRgb(byte r, byte g, byte b)
Parameters
Type |
Name |
Description |
System.Byte |
r |
|
System.Byte |
g |
|
System.Byte |
b |
|
Returns
FromScRgb(Single, Single, Single)
Declaration
public static DrawingColor FromScRgb(float r, float g, float b)
Parameters
Type |
Name |
Description |
System.Single |
r |
|
System.Single |
g |
|
System.Single |
b |
|
Returns
GetContrast(Boolean)
Declaration
public DrawingColor GetContrast(bool preserveOpacity)
Parameters
Type |
Name |
Description |
System.Boolean |
preserveOpacity |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
ToArgb()
Declaration
Returns
Type |
Description |
System.Int32 |
|
ToArgb(Theme)
Declaration
public int ToArgb(Theme theme)
Parameters
Type |
Name |
Description |
Theme |
theme |
|
Returns
Type |
Description |
System.Int32 |
|
ToColor()
Declaration
Returns
Type |
Description |
System.Drawing.Color |
|
ToHex()
Declaration
Returns
Type |
Description |
System.String |
|
ToHex(Color)
Declaration
public static string ToHex(Color color)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
color |
|
Returns
Type |
Description |
System.String |
|
ToHexWithAlpha(Color)
Declaration
public static string ToHexWithAlpha(Color color)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
color |
|
Returns
Type |
Description |
System.String |
|
ToHslColor()
Declaration
Returns
ToHslColor(ARgb)
Declaration
public static Hsl ToHslColor(ARgb rgb)
Parameters
Type |
Name |
Description |
ARgb |
rgb |
|
Returns
Declaration
public DrawingColor Transform(ColorTransform transform)
Parameters
Returns