715 references to KnownColor
System.Drawing (685)
commonui\System\Drawing\Advanced\ColorTranslator.cs (120)
56
case
KnownColor
.ActiveBorder:
58
case
KnownColor
.ActiveCaption:
60
case
KnownColor
.ActiveCaptionText:
62
case
KnownColor
.AppWorkspace:
64
case
KnownColor
.ButtonFace:
66
case
KnownColor
.ButtonHighlight:
68
case
KnownColor
.ButtonShadow:
70
case
KnownColor
.Control:
72
case
KnownColor
.ControlDark:
74
case
KnownColor
.ControlDarkDark:
76
case
KnownColor
.ControlLight:
78
case
KnownColor
.ControlLightLight:
80
case
KnownColor
.ControlText:
82
case
KnownColor
.Desktop:
84
case
KnownColor
.GradientActiveCaption:
86
case
KnownColor
.GradientInactiveCaption:
88
case
KnownColor
.GrayText:
90
case
KnownColor
.Highlight:
92
case
KnownColor
.HighlightText:
94
case
KnownColor
.HotTrack:
96
case
KnownColor
.InactiveBorder:
98
case
KnownColor
.InactiveCaption:
100
case
KnownColor
.InactiveCaptionText:
102
case
KnownColor
.Info:
104
case
KnownColor
.InfoText:
106
case
KnownColor
.Menu:
108
case
KnownColor
.MenuBar:
110
case
KnownColor
.MenuHighlight:
112
case
KnownColor
.MenuText:
114
case
KnownColor
.ScrollBar:
116
case
KnownColor
.Window:
118
case
KnownColor
.WindowFrame:
120
case
KnownColor
.WindowText:
145
return Color.FromKnownColor(
KnownColor
.ActiveBorder);
147
return Color.FromKnownColor(
KnownColor
.ActiveCaption);
149
return Color.FromKnownColor(
KnownColor
.ActiveCaptionText);
151
return Color.FromKnownColor(
KnownColor
.AppWorkspace);
153
return Color.FromKnownColor(
KnownColor
.Control);
155
return Color.FromKnownColor(
KnownColor
.ControlDark);
157
return Color.FromKnownColor(
KnownColor
.ControlDarkDark);
159
return Color.FromKnownColor(
KnownColor
.ControlLight);
161
return Color.FromKnownColor(
KnownColor
.ControlLightLight);
163
return Color.FromKnownColor(
KnownColor
.ControlText);
165
return Color.FromKnownColor(
KnownColor
.Desktop);
167
return Color.FromKnownColor(
KnownColor
.GradientActiveCaption);
169
return Color.FromKnownColor(
KnownColor
.GradientInactiveCaption);
171
return Color.FromKnownColor(
KnownColor
.GrayText);
173
return Color.FromKnownColor(
KnownColor
.Highlight);
175
return Color.FromKnownColor(
KnownColor
.HighlightText);
177
return Color.FromKnownColor(
KnownColor
.HotTrack);
179
return Color.FromKnownColor(
KnownColor
.InactiveBorder);
181
return Color.FromKnownColor(
KnownColor
.InactiveCaption);
183
return Color.FromKnownColor(
KnownColor
.InactiveCaptionText);
185
return Color.FromKnownColor(
KnownColor
.Info);
187
return Color.FromKnownColor(
KnownColor
.InfoText);
189
return Color.FromKnownColor(
KnownColor
.Menu);
191
return Color.FromKnownColor(
KnownColor
.MenuBar);
193
return Color.FromKnownColor(
KnownColor
.MenuHighlight);
195
return Color.FromKnownColor(
KnownColor
.MenuText);
197
return Color.FromKnownColor(
KnownColor
.ScrollBar);
199
return Color.FromKnownColor(
KnownColor
.Window);
201
return Color.FromKnownColor(
KnownColor
.WindowFrame);
203
return Color.FromKnownColor(
KnownColor
.WindowText);
295
case
KnownColor
.ActiveBorder: colorString = "activeborder"; break;
296
case
KnownColor
.GradientActiveCaption:
297
case
KnownColor
.ActiveCaption: colorString = "activecaption"; break;
298
case
KnownColor
.AppWorkspace: colorString = "appworkspace"; break;
299
case
KnownColor
.Desktop: colorString = "background"; break;
300
case
KnownColor
.Control: colorString = "buttonface"; break;
301
case
KnownColor
.ControlLight: colorString = "buttonface"; break;
302
case
KnownColor
.ControlDark: colorString = "buttonshadow"; break;
303
case
KnownColor
.ControlText: colorString = "buttontext"; break;
304
case
KnownColor
.ActiveCaptionText: colorString = "captiontext"; break;
305
case
KnownColor
.GrayText: colorString = "graytext"; break;
306
case
KnownColor
.HotTrack:
307
case
KnownColor
.Highlight: colorString = "highlight"; break;
308
case
KnownColor
.MenuHighlight:
309
case
KnownColor
.HighlightText: colorString = "highlighttext"; break;
310
case
KnownColor
.InactiveBorder: colorString = "inactiveborder"; break;
311
case
KnownColor
.GradientInactiveCaption:
312
case
KnownColor
.InactiveCaption: colorString = "inactivecaption"; break;
313
case
KnownColor
.InactiveCaptionText: colorString = "inactivecaptiontext"; break;
314
case
KnownColor
.Info: colorString = "infobackground"; break;
315
case
KnownColor
.InfoText: colorString = "infotext"; break;
316
case
KnownColor
.MenuBar:
317
case
KnownColor
.Menu: colorString = "menu"; break;
318
case
KnownColor
.MenuText: colorString = "menutext"; break;
319
case
KnownColor
.ScrollBar: colorString = "scrollbar"; break;
320
case
KnownColor
.ControlDarkDark: colorString = "threeddarkshadow"; break;
321
case
KnownColor
.ControlLightLight: colorString = "buttonhighlight"; break;
322
case
KnownColor
.Window: colorString = "window"; break;
323
case
KnownColor
.WindowFrame: colorString = "windowframe"; break;
324
case
KnownColor
.WindowText: colorString = "windowtext"; break;
347
htmlSysColorTable["activeborder"] = Color.FromKnownColor(
KnownColor
.ActiveBorder);
348
htmlSysColorTable["activecaption"] = Color.FromKnownColor(
KnownColor
.ActiveCaption);
349
htmlSysColorTable["appworkspace"] = Color.FromKnownColor(
KnownColor
.AppWorkspace);
350
htmlSysColorTable["background"] = Color.FromKnownColor(
KnownColor
.Desktop);
351
htmlSysColorTable["buttonface"] = Color.FromKnownColor(
KnownColor
.Control);
352
htmlSysColorTable["buttonhighlight"] = Color.FromKnownColor(
KnownColor
.ControlLightLight);
353
htmlSysColorTable["buttonshadow"] = Color.FromKnownColor(
KnownColor
.ControlDark);
354
htmlSysColorTable["buttontext"] = Color.FromKnownColor(
KnownColor
.ControlText);
355
htmlSysColorTable["captiontext"] = Color.FromKnownColor(
KnownColor
.ActiveCaptionText);
356
htmlSysColorTable["graytext"] = Color.FromKnownColor(
KnownColor
.GrayText);
357
htmlSysColorTable["highlight"] = Color.FromKnownColor(
KnownColor
.Highlight);
358
htmlSysColorTable["highlighttext"] = Color.FromKnownColor(
KnownColor
.HighlightText);
359
htmlSysColorTable["inactiveborder"] = Color.FromKnownColor(
KnownColor
.InactiveBorder);
360
htmlSysColorTable["inactivecaption"] = Color.FromKnownColor(
KnownColor
.InactiveCaption);
361
htmlSysColorTable["inactivecaptiontext"] = Color.FromKnownColor(
KnownColor
.InactiveCaptionText);
362
htmlSysColorTable["infobackground"] = Color.FromKnownColor(
KnownColor
.Info);
363
htmlSysColorTable["infotext"] = Color.FromKnownColor(
KnownColor
.InfoText);
364
htmlSysColorTable["menu"] = Color.FromKnownColor(
KnownColor
.Menu);
365
htmlSysColorTable["menutext"] = Color.FromKnownColor(
KnownColor
.MenuText);
366
htmlSysColorTable["scrollbar"] = Color.FromKnownColor(
KnownColor
.ScrollBar);
367
htmlSysColorTable["threeddarkshadow"] = Color.FromKnownColor(
KnownColor
.ControlDarkDark);
368
htmlSysColorTable["threedface"] = Color.FromKnownColor(
KnownColor
.Control);
369
htmlSysColorTable["threedhighlight"] = Color.FromKnownColor(
KnownColor
.ControlLight);
370
htmlSysColorTable["threedlightshadow"] = Color.FromKnownColor(
KnownColor
.ControlLightLight);
371
htmlSysColorTable["window"] = Color.FromKnownColor(
KnownColor
.Window);
372
htmlSysColorTable["windowframe"] = Color.FromKnownColor(
KnownColor
.WindowFrame);
373
htmlSysColorTable["windowtext"] = Color.FromKnownColor(
KnownColor
.WindowText);
commonui\System\Drawing\Color.cs (165)
49
return new Color(
KnownColor
.Transparent);
58
return new Color(
KnownColor
.AliceBlue);
67
return new Color(
KnownColor
.AntiqueWhite);
76
return new Color(
KnownColor
.Aqua);
85
return new Color(
KnownColor
.Aquamarine);
94
return new Color(
KnownColor
.Azure);
103
return new Color(
KnownColor
.Beige);
112
return new Color(
KnownColor
.Bisque);
121
return new Color(
KnownColor
.Black);
130
return new Color(
KnownColor
.BlanchedAlmond);
139
return new Color(
KnownColor
.Blue);
148
return new Color(
KnownColor
.BlueViolet);
157
return new Color(
KnownColor
.Brown);
166
return new Color(
KnownColor
.BurlyWood);
175
return new Color(
KnownColor
.CadetBlue);
184
return new Color(
KnownColor
.Chartreuse);
193
return new Color(
KnownColor
.Chocolate);
202
return new Color(
KnownColor
.Coral);
211
return new Color(
KnownColor
.CornflowerBlue);
220
return new Color(
KnownColor
.Cornsilk);
229
return new Color(
KnownColor
.Crimson);
238
return new Color(
KnownColor
.Cyan);
247
return new Color(
KnownColor
.DarkBlue);
256
return new Color(
KnownColor
.DarkCyan);
265
return new Color(
KnownColor
.DarkGoldenrod);
274
return new Color(
KnownColor
.DarkGray);
283
return new Color(
KnownColor
.DarkGreen);
292
return new Color(
KnownColor
.DarkKhaki);
301
return new Color(
KnownColor
.DarkMagenta);
310
return new Color(
KnownColor
.DarkOliveGreen);
319
return new Color(
KnownColor
.DarkOrange);
328
return new Color(
KnownColor
.DarkOrchid);
337
return new Color(
KnownColor
.DarkRed);
346
return new Color(
KnownColor
.DarkSalmon);
355
return new Color(
KnownColor
.DarkSeaGreen);
364
return new Color(
KnownColor
.DarkSlateBlue);
373
return new Color(
KnownColor
.DarkSlateGray);
382
return new Color(
KnownColor
.DarkTurquoise);
391
return new Color(
KnownColor
.DarkViolet);
400
return new Color(
KnownColor
.DeepPink);
409
return new Color(
KnownColor
.DeepSkyBlue);
418
return new Color(
KnownColor
.DimGray);
427
return new Color(
KnownColor
.DodgerBlue);
436
return new Color(
KnownColor
.Firebrick);
445
return new Color(
KnownColor
.FloralWhite);
454
return new Color(
KnownColor
.ForestGreen);
463
return new Color(
KnownColor
.Fuchsia);
472
return new Color(
KnownColor
.Gainsboro);
481
return new Color(
KnownColor
.GhostWhite);
490
return new Color(
KnownColor
.Gold);
499
return new Color(
KnownColor
.Goldenrod);
508
return new Color(
KnownColor
.Gray);
517
return new Color(
KnownColor
.Green);
526
return new Color(
KnownColor
.GreenYellow);
535
return new Color(
KnownColor
.Honeydew);
544
return new Color(
KnownColor
.HotPink);
553
return new Color(
KnownColor
.IndianRed);
562
return new Color(
KnownColor
.Indigo);
571
return new Color(
KnownColor
.Ivory);
580
return new Color(
KnownColor
.Khaki);
589
return new Color(
KnownColor
.Lavender);
598
return new Color(
KnownColor
.LavenderBlush);
607
return new Color(
KnownColor
.LawnGreen);
616
return new Color(
KnownColor
.LemonChiffon);
625
return new Color(
KnownColor
.LightBlue);
634
return new Color(
KnownColor
.LightCoral);
643
return new Color(
KnownColor
.LightCyan);
652
return new Color(
KnownColor
.LightGoldenrodYellow);
661
return new Color(
KnownColor
.LightGreen);
670
return new Color(
KnownColor
.LightGray);
679
return new Color(
KnownColor
.LightPink);
688
return new Color(
KnownColor
.LightSalmon);
697
return new Color(
KnownColor
.LightSeaGreen);
706
return new Color(
KnownColor
.LightSkyBlue);
715
return new Color(
KnownColor
.LightSlateGray);
724
return new Color(
KnownColor
.LightSteelBlue);
733
return new Color(
KnownColor
.LightYellow);
742
return new Color(
KnownColor
.Lime);
751
return new Color(
KnownColor
.LimeGreen);
760
return new Color(
KnownColor
.Linen);
769
return new Color(
KnownColor
.Magenta);
778
return new Color(
KnownColor
.Maroon);
787
return new Color(
KnownColor
.MediumAquamarine);
796
return new Color(
KnownColor
.MediumBlue);
805
return new Color(
KnownColor
.MediumOrchid);
814
return new Color(
KnownColor
.MediumPurple);
823
return new Color(
KnownColor
.MediumSeaGreen);
832
return new Color(
KnownColor
.MediumSlateBlue);
841
return new Color(
KnownColor
.MediumSpringGreen);
850
return new Color(
KnownColor
.MediumTurquoise);
859
return new Color(
KnownColor
.MediumVioletRed);
868
return new Color(
KnownColor
.MidnightBlue);
877
return new Color(
KnownColor
.MintCream);
886
return new Color(
KnownColor
.MistyRose);
895
return new Color(
KnownColor
.Moccasin);
904
return new Color(
KnownColor
.NavajoWhite);
913
return new Color(
KnownColor
.Navy);
922
return new Color(
KnownColor
.OldLace);
931
return new Color(
KnownColor
.Olive);
940
return new Color(
KnownColor
.OliveDrab);
949
return new Color(
KnownColor
.Orange);
958
return new Color(
KnownColor
.OrangeRed);
967
return new Color(
KnownColor
.Orchid);
976
return new Color(
KnownColor
.PaleGoldenrod);
985
return new Color(
KnownColor
.PaleGreen);
994
return new Color(
KnownColor
.PaleTurquoise);
1003
return new Color(
KnownColor
.PaleVioletRed);
1012
return new Color(
KnownColor
.PapayaWhip);
1021
return new Color(
KnownColor
.PeachPuff);
1030
return new Color(
KnownColor
.Peru);
1039
return new Color(
KnownColor
.Pink);
1048
return new Color(
KnownColor
.Plum);
1057
return new Color(
KnownColor
.PowderBlue);
1066
return new Color(
KnownColor
.Purple);
1075
return new Color(
KnownColor
.Red);
1084
return new Color(
KnownColor
.RosyBrown);
1093
return new Color(
KnownColor
.RoyalBlue);
1102
return new Color(
KnownColor
.SaddleBrown);
1111
return new Color(
KnownColor
.Salmon);
1120
return new Color(
KnownColor
.SandyBrown);
1129
return new Color(
KnownColor
.SeaGreen);
1138
return new Color(
KnownColor
.SeaShell);
1147
return new Color(
KnownColor
.Sienna);
1156
return new Color(
KnownColor
.Silver);
1165
return new Color(
KnownColor
.SkyBlue);
1174
return new Color(
KnownColor
.SlateBlue);
1183
return new Color(
KnownColor
.SlateGray);
1192
return new Color(
KnownColor
.Snow);
1201
return new Color(
KnownColor
.SpringGreen);
1210
return new Color(
KnownColor
.SteelBlue);
1219
return new Color(
KnownColor
.Tan);
1228
return new Color(
KnownColor
.Teal);
1237
return new Color(
KnownColor
.Thistle);
1246
return new Color(
KnownColor
.Tomato);
1255
return new Color(
KnownColor
.Turquoise);
1264
return new Color(
KnownColor
.Violet);
1273
return new Color(
KnownColor
.Wheat);
1282
return new Color(
KnownColor
.White);
1291
return new Color(
KnownColor
.WhiteSmoke);
1300
return new Color(
KnownColor
.Yellow);
1309
return new Color(
KnownColor
.YellowGreen);
1357
internal Color(
KnownColor
knownColor) {
1364
private Color(long value, short state, string name,
KnownColor
knownColor) {
1419
/// Predefined colors are defined in the <see cref='System.Drawing.
KnownColor
'/>
1441
/// Specifies whether this <see cref='System.Drawing.Color'/> has a name or is a <see cref='System.Drawing.
KnownColor
'/>.
1455
return IsKnownColor && ((((
KnownColor
) knownColor) <=
KnownColor
.WindowText) || (((
KnownColor
) knownColor) >
KnownColor
.YellowGreen));
1489
string tablename = KnownColorTable.KnownColorToName((
KnownColor
) knownColor);
1493
Debug.Assert(false, "Could not find known color '" + ((
KnownColor
) knownColor) + "' in the KnownColorTable");
1495
return ((
KnownColor
)knownColor).ToString();
1514
return unchecked((int)KnownColorTable.KnownColorToArgb((
KnownColor
)knownColor));
1545
return new Color((long)argb & 0xffffffff, StateARGBValueValid, null, (
KnownColor
)0);
1560
return new Color(MakeArgb((byte) alpha, (byte) red, (byte) green, (byte) blue), StateARGBValueValid, null, (
KnownColor
)0);
1573
return new Color(MakeArgb(unchecked((byte) alpha), baseColor.R, baseColor.G, baseColor.B), StateARGBValueValid, null, (
KnownColor
)0);
1590
/// Creates a <see cref='System.Drawing.Color'/> from the specified <see cref='System.Drawing.
KnownColor
'/> .
1593
public static Color FromKnownColor(
KnownColor
color) {
1594
if( !ClientUtils.IsEnumValid( color, unchecked((int) color), (int)
KnownColor
.ActiveBorder, (int)
KnownColor
.MenuHighlight ) ) {
1613
return new Color(NotDefinedValue, StateNameValid, name, (
KnownColor
)0);
1731
/// Returns the <see cref='System.Drawing.
KnownColor
'/> value for this color, if it is
1732
/// based on a <see cref='System.Drawing.
KnownColor
'/> .
1735
public
KnownColor
ToKnownColor() {
1736
return(
KnownColor
)knownColor;
commonui\System\Drawing\KnownColorTable.cs (355)
38
Color color = Color.FromKnownColor((
KnownColor
)index);
56
int[] values = new int[(unchecked((int)
KnownColor
.MenuHighlight)) + 1];
67
values[(int)
KnownColor
.Transparent] = 0x00FFFFFF;
68
values[(int)
KnownColor
.AliceBlue] = unchecked((int)0xFFF0F8FF);
69
values[(int)
KnownColor
.AntiqueWhite] = unchecked((int)0xFFFAEBD7);
70
values[(int)
KnownColor
.Aqua] = unchecked((int)0xFF00FFFF);
71
values[(int)
KnownColor
.Aquamarine] = unchecked((int)0xFF7FFFD4);
72
values[(int)
KnownColor
.Azure] = unchecked((int)0xFFF0FFFF);
73
values[(int)
KnownColor
.Beige] = unchecked((int)0xFFF5F5DC);
74
values[(int)
KnownColor
.Bisque] = unchecked(unchecked((int)0xFFFFE4C4));
75
values[(int)
KnownColor
.Black] = unchecked((int)0xFF000000);
76
values[(int)
KnownColor
.BlanchedAlmond] = unchecked((int)0xFFFFEBCD);
77
values[(int)
KnownColor
.Blue] = unchecked((int)0xFF0000FF);
78
values[(int)
KnownColor
.BlueViolet] = unchecked((int)0xFF8A2BE2);
79
values[(int)
KnownColor
.Brown] = unchecked((int)0xFFA52A2A);
80
values[(int)
KnownColor
.BurlyWood] = unchecked((int)0xFFDEB887);
81
values[(int)
KnownColor
.CadetBlue] = unchecked((int)0xFF5F9EA0);
82
values[(int)
KnownColor
.Chartreuse] = unchecked((int)0xFF7FFF00);
83
values[(int)
KnownColor
.Chocolate] = unchecked((int)0xFFD2691E);
84
values[(int)
KnownColor
.Coral] = unchecked((int)0xFFFF7F50);
85
values[(int)
KnownColor
.CornflowerBlue] = unchecked((int)0xFF6495ED);
86
values[(int)
KnownColor
.Cornsilk] = unchecked((int)0xFFFFF8DC);
87
values[(int)
KnownColor
.Crimson] = unchecked((int)0xFFDC143C);
88
values[(int)
KnownColor
.Cyan] = unchecked((int)0xFF00FFFF);
89
values[(int)
KnownColor
.DarkBlue] = unchecked((int)0xFF00008B);
90
values[(int)
KnownColor
.DarkCyan] = unchecked((int)0xFF008B8B);
91
values[(int)
KnownColor
.DarkGoldenrod] = unchecked((int)0xFFB8860B);
92
values[(int)
KnownColor
.DarkGray] = unchecked((int)0xFFA9A9A9);
93
values[(int)
KnownColor
.DarkGreen] = unchecked((int)0xFF006400);
94
values[(int)
KnownColor
.DarkKhaki] = unchecked((int)0xFFBDB76B);
95
values[(int)
KnownColor
.DarkMagenta] = unchecked((int)0xFF8B008B);
96
values[(int)
KnownColor
.DarkOliveGreen] = unchecked((int)0xFF556B2F);
97
values[(int)
KnownColor
.DarkOrange] = unchecked((int)0xFFFF8C00);
98
values[(int)
KnownColor
.DarkOrchid] = unchecked((int)0xFF9932CC);
99
values[(int)
KnownColor
.DarkRed] = unchecked((int)0xFF8B0000);
100
values[(int)
KnownColor
.DarkSalmon] = unchecked((int)0xFFE9967A);
101
values[(int)
KnownColor
.DarkSeaGreen] = unchecked((int)0xFF8FBC8B);
102
values[(int)
KnownColor
.DarkSlateBlue] = unchecked((int)0xFF483D8B);
103
values[(int)
KnownColor
.DarkSlateGray] = unchecked((int)0xFF2F4F4F);
104
values[(int)
KnownColor
.DarkTurquoise] = unchecked((int)0xFF00CED1);
105
values[(int)
KnownColor
.DarkViolet] = unchecked((int)0xFF9400D3);
106
values[(int)
KnownColor
.DeepPink] = unchecked((int)0xFFFF1493);
107
values[(int)
KnownColor
.DeepSkyBlue] = unchecked((int)0xFF00BFFF);
108
values[(int)
KnownColor
.DimGray] = unchecked((int)0xFF696969);
109
values[(int)
KnownColor
.DodgerBlue] = unchecked((int)0xFF1E90FF);
110
values[(int)
KnownColor
.Firebrick] = unchecked((int)0xFFB22222);
111
values[(int)
KnownColor
.FloralWhite] = unchecked((int)0xFFFFFAF0);
112
values[(int)
KnownColor
.ForestGreen] = unchecked((int)0xFF228B22);
113
values[(int)
KnownColor
.Fuchsia] = unchecked((int)0xFFFF00FF);
114
values[(int)
KnownColor
.Gainsboro] = unchecked((int)0xFFDCDCDC);
115
values[(int)
KnownColor
.GhostWhite] = unchecked((int)0xFFF8F8FF);
116
values[(int)
KnownColor
.Gold] = unchecked((int)0xFFFFD700);
117
values[(int)
KnownColor
.Goldenrod] = unchecked((int)0xFFDAA520);
118
values[(int)
KnownColor
.Gray] = unchecked((int)0xFF808080);
119
values[(int)
KnownColor
.Green] = unchecked((int)0xFF008000);
120
values[(int)
KnownColor
.GreenYellow] = unchecked((int)0xFFADFF2F);
121
values[(int)
KnownColor
.Honeydew] = unchecked((int)0xFFF0FFF0);
122
values[(int)
KnownColor
.HotPink] = unchecked((int)0xFFFF69B4);
123
values[(int)
KnownColor
.IndianRed] = unchecked((int)0xFFCD5C5C);
124
values[(int)
KnownColor
.Indigo] = unchecked((int)0xFF4B0082);
125
values[(int)
KnownColor
.Ivory] = unchecked((int)0xFFFFFFF0);
126
values[(int)
KnownColor
.Khaki] = unchecked((int)0xFFF0E68C);
127
values[(int)
KnownColor
.Lavender] = unchecked((int)0xFFE6E6FA);
128
values[(int)
KnownColor
.LavenderBlush] = unchecked((int)0xFFFFF0F5);
129
values[(int)
KnownColor
.LawnGreen] = unchecked((int)0xFF7CFC00);
130
values[(int)
KnownColor
.LemonChiffon] = unchecked((int)0xFFFFFACD);
131
values[(int)
KnownColor
.LightBlue] = unchecked((int)0xFFADD8E6);
132
values[(int)
KnownColor
.LightCoral] = unchecked((int)0xFFF08080);
133
values[(int)
KnownColor
.LightCyan] = unchecked((int)0xFFE0FFFF);
134
values[(int)
KnownColor
.LightGoldenrodYellow] = unchecked((int)0xFFFAFAD2);
135
values[(int)
KnownColor
.LightGray] = unchecked((int)0xFFD3D3D3);
136
values[(int)
KnownColor
.LightGreen] = unchecked((int)0xFF90EE90);
137
values[(int)
KnownColor
.LightPink] = unchecked((int)0xFFFFB6C1);
138
values[(int)
KnownColor
.LightSalmon] = unchecked((int)0xFFFFA07A);
139
values[(int)
KnownColor
.LightSeaGreen] = unchecked((int)0xFF20B2AA);
140
values[(int)
KnownColor
.LightSkyBlue] = unchecked((int)0xFF87CEFA);
141
values[(int)
KnownColor
.LightSlateGray] = unchecked((int)0xFF778899);
142
values[(int)
KnownColor
.LightSteelBlue] = unchecked((int)0xFFB0C4DE);
143
values[(int)
KnownColor
.LightYellow] = unchecked((int)0xFFFFFFE0);
144
values[(int)
KnownColor
.Lime] = unchecked((int)0xFF00FF00);
145
values[(int)
KnownColor
.LimeGreen] = unchecked((int)0xFF32CD32);
146
values[(int)
KnownColor
.Linen] = unchecked((int)0xFFFAF0E6);
147
values[(int)
KnownColor
.Magenta] = unchecked((int)0xFFFF00FF);
148
values[(int)
KnownColor
.Maroon] = unchecked((int)0xFF800000);
149
values[(int)
KnownColor
.MediumAquamarine] = unchecked((int)0xFF66CDAA);
150
values[(int)
KnownColor
.MediumBlue] = unchecked((int)0xFF0000CD);
151
values[(int)
KnownColor
.MediumOrchid] = unchecked((int)0xFFBA55D3);
152
values[(int)
KnownColor
.MediumPurple] = unchecked((int)0xFF9370DB);
153
values[(int)
KnownColor
.MediumSeaGreen] = unchecked((int)0xFF3CB371);
154
values[(int)
KnownColor
.MediumSlateBlue] = unchecked((int)0xFF7B68EE);
155
values[(int)
KnownColor
.MediumSpringGreen] = unchecked((int)0xFF00FA9A);
156
values[(int)
KnownColor
.MediumTurquoise] = unchecked((int)0xFF48D1CC);
157
values[(int)
KnownColor
.MediumVioletRed] = unchecked((int)0xFFC71585);
158
values[(int)
KnownColor
.MidnightBlue] = unchecked((int)0xFF191970);
159
values[(int)
KnownColor
.MintCream] = unchecked((int)0xFFF5FFFA);
160
values[(int)
KnownColor
.MistyRose] = unchecked((int)0xFFFFE4E1);
161
values[(int)
KnownColor
.Moccasin] = unchecked((int)0xFFFFE4B5);
162
values[(int)
KnownColor
.NavajoWhite] = unchecked((int)0xFFFFDEAD);
163
values[(int)
KnownColor
.Navy] = unchecked((int)0xFF000080);
164
values[(int)
KnownColor
.OldLace] = unchecked((int)0xFFFDF5E6);
165
values[(int)
KnownColor
.Olive] = unchecked((int)0xFF808000);
166
values[(int)
KnownColor
.OliveDrab] = unchecked((int)0xFF6B8E23);
167
values[(int)
KnownColor
.Orange] = unchecked((int)0xFFFFA500);
168
values[(int)
KnownColor
.OrangeRed] = unchecked((int)0xFFFF4500);
169
values[(int)
KnownColor
.Orchid] = unchecked((int)0xFFDA70D6);
170
values[(int)
KnownColor
.PaleGoldenrod] = unchecked((int)0xFFEEE8AA);
171
values[(int)
KnownColor
.PaleGreen] = unchecked((int)0xFF98FB98);
172
values[(int)
KnownColor
.PaleTurquoise] = unchecked((int)0xFFAFEEEE);
173
values[(int)
KnownColor
.PaleVioletRed] = unchecked((int)0xFFDB7093);
174
values[(int)
KnownColor
.PapayaWhip] = unchecked((int)0xFFFFEFD5);
175
values[(int)
KnownColor
.PeachPuff] = unchecked((int)0xFFFFDAB9);
176
values[(int)
KnownColor
.Peru] = unchecked((int)0xFFCD853F);
177
values[(int)
KnownColor
.Pink] = unchecked((int)0xFFFFC0CB);
178
values[(int)
KnownColor
.Plum] = unchecked((int)0xFFDDA0DD);
179
values[(int)
KnownColor
.PowderBlue] = unchecked((int)0xFFB0E0E6);
180
values[(int)
KnownColor
.Purple] = unchecked((int)0xFF800080);
181
values[(int)
KnownColor
.Red] = unchecked((int)0xFFFF0000);
182
values[(int)
KnownColor
.RosyBrown] = unchecked((int)0xFFBC8F8F);
183
values[(int)
KnownColor
.RoyalBlue] = unchecked((int)0xFF4169E1);
184
values[(int)
KnownColor
.SaddleBrown] = unchecked((int)0xFF8B4513);
185
values[(int)
KnownColor
.Salmon] = unchecked((int)0xFFFA8072);
186
values[(int)
KnownColor
.SandyBrown] = unchecked((int)0xFFF4A460);
187
values[(int)
KnownColor
.SeaGreen] = unchecked((int)0xFF2E8B57);
188
values[(int)
KnownColor
.SeaShell] = unchecked((int)0xFFFFF5EE);
189
values[(int)
KnownColor
.Sienna] = unchecked((int)0xFFA0522D);
190
values[(int)
KnownColor
.Silver] = unchecked((int)0xFFC0C0C0);
191
values[(int)
KnownColor
.SkyBlue] = unchecked((int)0xFF87CEEB);
192
values[(int)
KnownColor
.SlateBlue] = unchecked((int)0xFF6A5ACD);
193
values[(int)
KnownColor
.SlateGray] = unchecked((int)0xFF708090);
194
values[(int)
KnownColor
.Snow] = unchecked((int)0xFFFFFAFA);
195
values[(int)
KnownColor
.SpringGreen] = unchecked((int)0xFF00FF7F);
196
values[(int)
KnownColor
.SteelBlue] = unchecked((int)0xFF4682B4);
197
values[(int)
KnownColor
.Tan] = unchecked((int)0xFFD2B48C);
198
values[(int)
KnownColor
.Teal] = unchecked((int)0xFF008080);
199
values[(int)
KnownColor
.Thistle] = unchecked((int)0xFFD8BFD8);
200
values[(int)
KnownColor
.Tomato] = unchecked((int)0xFFFF6347);
201
values[(int)
KnownColor
.Turquoise] = unchecked((int)0xFF40E0D0);
202
values[(int)
KnownColor
.Violet] = unchecked((int)0xFFEE82EE);
203
values[(int)
KnownColor
.Wheat] = unchecked((int)0xFFF5DEB3);
204
values[(int)
KnownColor
.White] = unchecked((int)0xFFFFFFFF);
205
values[(int)
KnownColor
.WhiteSmoke] = unchecked((int)0xFFF5F5F5);
206
values[(int)
KnownColor
.Yellow] = unchecked((int)0xFFFFFF00);
207
values[(int)
KnownColor
.YellowGreen] = unchecked((int)0xFF9ACD32);
220
string[] values = new string[((int)
KnownColor
.MenuHighlight) + 1];
224
values[(int)
KnownColor
.ActiveBorder] = "ActiveBorder";
225
values[(int)
KnownColor
.ActiveCaption] = "ActiveCaption";
226
values[(int)
KnownColor
.ActiveCaptionText] = "ActiveCaptionText";
227
values[(int)
KnownColor
.AppWorkspace] = "AppWorkspace";
228
values[(int)
KnownColor
.ButtonFace] = "ButtonFace";
229
values[(int)
KnownColor
.ButtonHighlight] = "ButtonHighlight";
230
values[(int)
KnownColor
.ButtonShadow] = "ButtonShadow";
231
values[(int)
KnownColor
.Control] = "Control";
232
values[(int)
KnownColor
.ControlDark] = "ControlDark";
233
values[(int)
KnownColor
.ControlDarkDark] = "ControlDarkDark";
234
values[(int)
KnownColor
.ControlLight] = "ControlLight";
235
values[(int)
KnownColor
.ControlLightLight] = "ControlLightLight";
236
values[(int)
KnownColor
.ControlText] = "ControlText";
237
values[(int)
KnownColor
.Desktop] = "Desktop";
238
values[(int)
KnownColor
.GradientActiveCaption] = "GradientActiveCaption";
239
values[(int)
KnownColor
.GradientInactiveCaption] = "GradientInactiveCaption";
240
values[(int)
KnownColor
.GrayText] = "GrayText";
241
values[(int)
KnownColor
.Highlight] = "Highlight";
242
values[(int)
KnownColor
.HighlightText] = "HighlightText";
243
values[(int)
KnownColor
.HotTrack] = "HotTrack";
244
values[(int)
KnownColor
.InactiveBorder] = "InactiveBorder";
245
values[(int)
KnownColor
.InactiveCaption] = "InactiveCaption";
246
values[(int)
KnownColor
.InactiveCaptionText] = "InactiveCaptionText";
247
values[(int)
KnownColor
.Info] = "Info";
248
values[(int)
KnownColor
.InfoText] = "InfoText";
249
values[(int)
KnownColor
.Menu] = "Menu";
250
values[(int)
KnownColor
.MenuBar] = "MenuBar";
251
values[(int)
KnownColor
.MenuHighlight] = "MenuHighlight";
252
values[(int)
KnownColor
.MenuText] = "MenuText";
253
values[(int)
KnownColor
.ScrollBar] = "ScrollBar";
254
values[(int)
KnownColor
.Window] = "Window";
255
values[(int)
KnownColor
.WindowFrame] = "WindowFrame";
256
values[(int)
KnownColor
.WindowText] = "WindowText";
258
values[(int)
KnownColor
.Transparent] = "Transparent";
259
values[(int)
KnownColor
.AliceBlue] = "AliceBlue";
260
values[(int)
KnownColor
.AntiqueWhite] = "AntiqueWhite";
261
values[(int)
KnownColor
.Aqua] = "Aqua";
262
values[(int)
KnownColor
.Aquamarine] = "Aquamarine";
263
values[(int)
KnownColor
.Azure] = "Azure";
264
values[(int)
KnownColor
.Beige] = "Beige";
265
values[(int)
KnownColor
.Bisque] = "Bisque";
266
values[(int)
KnownColor
.Black] = "Black";
267
values[(int)
KnownColor
.BlanchedAlmond] = "BlanchedAlmond";
268
values[(int)
KnownColor
.Blue] = "Blue";
269
values[(int)
KnownColor
.BlueViolet] = "BlueViolet";
270
values[(int)
KnownColor
.Brown] = "Brown";
271
values[(int)
KnownColor
.BurlyWood] = "BurlyWood";
272
values[(int)
KnownColor
.CadetBlue] = "CadetBlue";
273
values[(int)
KnownColor
.Chartreuse] = "Chartreuse";
274
values[(int)
KnownColor
.Chocolate] = "Chocolate";
275
values[(int)
KnownColor
.Coral] = "Coral";
276
values[(int)
KnownColor
.CornflowerBlue] = "CornflowerBlue";
277
values[(int)
KnownColor
.Cornsilk] = "Cornsilk";
278
values[(int)
KnownColor
.Crimson] = "Crimson";
279
values[(int)
KnownColor
.Cyan] = "Cyan";
280
values[(int)
KnownColor
.DarkBlue] = "DarkBlue";
281
values[(int)
KnownColor
.DarkCyan] = "DarkCyan";
282
values[(int)
KnownColor
.DarkGoldenrod] = "DarkGoldenrod";
283
values[(int)
KnownColor
.DarkGray] = "DarkGray";
284
values[(int)
KnownColor
.DarkGreen] = "DarkGreen";
285
values[(int)
KnownColor
.DarkKhaki] = "DarkKhaki";
286
values[(int)
KnownColor
.DarkMagenta] = "DarkMagenta";
287
values[(int)
KnownColor
.DarkOliveGreen] = "DarkOliveGreen";
288
values[(int)
KnownColor
.DarkOrange] = "DarkOrange";
289
values[(int)
KnownColor
.DarkOrchid] = "DarkOrchid";
290
values[(int)
KnownColor
.DarkRed] = "DarkRed";
291
values[(int)
KnownColor
.DarkSalmon] = "DarkSalmon";
292
values[(int)
KnownColor
.DarkSeaGreen] = "DarkSeaGreen";
293
values[(int)
KnownColor
.DarkSlateBlue] = "DarkSlateBlue";
294
values[(int)
KnownColor
.DarkSlateGray] = "DarkSlateGray";
295
values[(int)
KnownColor
.DarkTurquoise] = "DarkTurquoise";
296
values[(int)
KnownColor
.DarkViolet] = "DarkViolet";
297
values[(int)
KnownColor
.DeepPink] = "DeepPink";
298
values[(int)
KnownColor
.DeepSkyBlue] = "DeepSkyBlue";
299
values[(int)
KnownColor
.DimGray] = "DimGray";
300
values[(int)
KnownColor
.DodgerBlue] = "DodgerBlue";
301
values[(int)
KnownColor
.Firebrick] = "Firebrick";
302
values[(int)
KnownColor
.FloralWhite] = "FloralWhite";
303
values[(int)
KnownColor
.ForestGreen] = "ForestGreen";
304
values[(int)
KnownColor
.Fuchsia] = "Fuchsia";
305
values[(int)
KnownColor
.Gainsboro] = "Gainsboro";
306
values[(int)
KnownColor
.GhostWhite] = "GhostWhite";
307
values[(int)
KnownColor
.Gold] = "Gold";
308
values[(int)
KnownColor
.Goldenrod] = "Goldenrod";
309
values[(int)
KnownColor
.Gray] = "Gray";
310
values[(int)
KnownColor
.Green] = "Green";
311
values[(int)
KnownColor
.GreenYellow] = "GreenYellow";
312
values[(int)
KnownColor
.Honeydew] = "Honeydew";
313
values[(int)
KnownColor
.HotPink] = "HotPink";
314
values[(int)
KnownColor
.IndianRed] = "IndianRed";
315
values[(int)
KnownColor
.Indigo] = "Indigo";
316
values[(int)
KnownColor
.Ivory] = "Ivory";
317
values[(int)
KnownColor
.Khaki] = "Khaki";
318
values[(int)
KnownColor
.Lavender] = "Lavender";
319
values[(int)
KnownColor
.LavenderBlush] = "LavenderBlush";
320
values[(int)
KnownColor
.LawnGreen] = "LawnGreen";
321
values[(int)
KnownColor
.LemonChiffon] = "LemonChiffon";
322
values[(int)
KnownColor
.LightBlue] = "LightBlue";
323
values[(int)
KnownColor
.LightCoral] = "LightCoral";
324
values[(int)
KnownColor
.LightCyan] = "LightCyan";
325
values[(int)
KnownColor
.LightGoldenrodYellow] = "LightGoldenrodYellow";
326
values[(int)
KnownColor
.LightGray] = "LightGray";
327
values[(int)
KnownColor
.LightGreen] = "LightGreen";
328
values[(int)
KnownColor
.LightPink] = "LightPink";
329
values[(int)
KnownColor
.LightSalmon] = "LightSalmon";
330
values[(int)
KnownColor
.LightSeaGreen] = "LightSeaGreen";
331
values[(int)
KnownColor
.LightSkyBlue] = "LightSkyBlue";
332
values[(int)
KnownColor
.LightSlateGray] = "LightSlateGray";
333
values[(int)
KnownColor
.LightSteelBlue] = "LightSteelBlue";
334
values[(int)
KnownColor
.LightYellow] = "LightYellow";
335
values[(int)
KnownColor
.Lime] = "Lime";
336
values[(int)
KnownColor
.LimeGreen] = "LimeGreen";
337
values[(int)
KnownColor
.Linen] = "Linen";
338
values[(int)
KnownColor
.Magenta] = "Magenta";
339
values[(int)
KnownColor
.Maroon] = "Maroon";
340
values[(int)
KnownColor
.MediumAquamarine] = "MediumAquamarine";
341
values[(int)
KnownColor
.MediumBlue] = "MediumBlue";
342
values[(int)
KnownColor
.MediumOrchid] = "MediumOrchid";
343
values[(int)
KnownColor
.MediumPurple] = "MediumPurple";
344
values[(int)
KnownColor
.MediumSeaGreen] = "MediumSeaGreen";
345
values[(int)
KnownColor
.MediumSlateBlue] = "MediumSlateBlue";
346
values[(int)
KnownColor
.MediumSpringGreen] = "MediumSpringGreen";
347
values[(int)
KnownColor
.MediumTurquoise] = "MediumTurquoise";
348
values[(int)
KnownColor
.MediumVioletRed] = "MediumVioletRed";
349
values[(int)
KnownColor
.MidnightBlue] = "MidnightBlue";
350
values[(int)
KnownColor
.MintCream] = "MintCream";
351
values[(int)
KnownColor
.MistyRose] = "MistyRose";
352
values[(int)
KnownColor
.Moccasin] = "Moccasin";
353
values[(int)
KnownColor
.NavajoWhite] = "NavajoWhite";
354
values[(int)
KnownColor
.Navy] = "Navy";
355
values[(int)
KnownColor
.OldLace] = "OldLace";
356
values[(int)
KnownColor
.Olive] = "Olive";
357
values[(int)
KnownColor
.OliveDrab] = "OliveDrab";
358
values[(int)
KnownColor
.Orange] = "Orange";
359
values[(int)
KnownColor
.OrangeRed] = "OrangeRed";
360
values[(int)
KnownColor
.Orchid] = "Orchid";
361
values[(int)
KnownColor
.PaleGoldenrod] = "PaleGoldenrod";
362
values[(int)
KnownColor
.PaleGreen] = "PaleGreen";
363
values[(int)
KnownColor
.PaleTurquoise] = "PaleTurquoise";
364
values[(int)
KnownColor
.PaleVioletRed] = "PaleVioletRed";
365
values[(int)
KnownColor
.PapayaWhip] = "PapayaWhip";
366
values[(int)
KnownColor
.PeachPuff] = "PeachPuff";
367
values[(int)
KnownColor
.Peru] = "Peru";
368
values[(int)
KnownColor
.Pink] = "Pink";
369
values[(int)
KnownColor
.Plum] = "Plum";
370
values[(int)
KnownColor
.PowderBlue] = "PowderBlue";
371
values[(int)
KnownColor
.Purple] = "Purple";
372
values[(int)
KnownColor
.Red] = "Red";
373
values[(int)
KnownColor
.RosyBrown] = "RosyBrown";
374
values[(int)
KnownColor
.RoyalBlue] = "RoyalBlue";
375
values[(int)
KnownColor
.SaddleBrown] = "SaddleBrown";
376
values[(int)
KnownColor
.Salmon] = "Salmon";
377
values[(int)
KnownColor
.SandyBrown] = "SandyBrown";
378
values[(int)
KnownColor
.SeaGreen] = "SeaGreen";
379
values[(int)
KnownColor
.SeaShell] = "SeaShell";
380
values[(int)
KnownColor
.Sienna] = "Sienna";
381
values[(int)
KnownColor
.Silver] = "Silver";
382
values[(int)
KnownColor
.SkyBlue] = "SkyBlue";
383
values[(int)
KnownColor
.SlateBlue] = "SlateBlue";
384
values[(int)
KnownColor
.SlateGray] = "SlateGray";
385
values[(int)
KnownColor
.Snow] = "Snow";
386
values[(int)
KnownColor
.SpringGreen] = "SpringGreen";
387
values[(int)
KnownColor
.SteelBlue] = "SteelBlue";
388
values[(int)
KnownColor
.Tan] = "Tan";
389
values[(int)
KnownColor
.Teal] = "Teal";
390
values[(int)
KnownColor
.Thistle] = "Thistle";
391
values[(int)
KnownColor
.Tomato] = "Tomato";
392
values[(int)
KnownColor
.Turquoise] = "Turquoise";
393
values[(int)
KnownColor
.Violet] = "Violet";
394
values[(int)
KnownColor
.Wheat] = "Wheat";
395
values[(int)
KnownColor
.White] = "White";
396
values[(int)
KnownColor
.WhiteSmoke] = "WhiteSmoke";
397
values[(int)
KnownColor
.Yellow] = "Yellow";
398
values[(int)
KnownColor
.YellowGreen] = "YellowGreen";
402
public static int KnownColorToArgb(
KnownColor
color) {
404
if (color <=
KnownColor
.MenuHighlight) {
412
public static string KnownColorToName(
KnownColor
color) {
414
if (color <=
KnownColor
.MenuHighlight) {
446
colorTable[(int)
KnownColor
.ActiveBorder] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.ActiveBorder);
447
colorTable[(int)
KnownColor
.ActiveCaption] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.ActiveCaption);
448
colorTable[(int)
KnownColor
.ActiveCaptionText] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.ActiveCaptionText);
449
colorTable[(int)
KnownColor
.AppWorkspace] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.AppWorkspace);
450
colorTable[(int)
KnownColor
.ButtonFace] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.ButtonFace);
451
colorTable[(int)
KnownColor
.ButtonHighlight] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.ButtonHighlight);
452
colorTable[(int)
KnownColor
.ButtonShadow] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.ButtonShadow);
453
colorTable[(int)
KnownColor
.Control] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.Control);
454
colorTable[(int)
KnownColor
.ControlDark] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.ControlDark);
455
colorTable[(int)
KnownColor
.ControlDarkDark] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.ControlDarkDark);
456
colorTable[(int)
KnownColor
.ControlLight] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.ControlLight);
457
colorTable[(int)
KnownColor
.ControlLightLight] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.ControlLightLight);
458
colorTable[(int)
KnownColor
.ControlText] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.ControlText);
459
colorTable[(int)
KnownColor
.Desktop] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.Desktop);
460
colorTable[(int)
KnownColor
.GradientActiveCaption] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.GradientActiveCaption);
461
colorTable[(int)
KnownColor
.GradientInactiveCaption] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.GradientInactiveCaption);
462
colorTable[(int)
KnownColor
.GrayText] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.GrayText);
463
colorTable[(int)
KnownColor
.Highlight] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.Highlight);
464
colorTable[(int)
KnownColor
.HighlightText] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.HighlightText);
465
colorTable[(int)
KnownColor
.HotTrack] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.HotTrack);
466
colorTable[(int)
KnownColor
.InactiveBorder] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.InactiveBorder);
467
colorTable[(int)
KnownColor
.InactiveCaption] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.InactiveCaption);
468
colorTable[(int)
KnownColor
.InactiveCaptionText] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.InactiveCaptionText);
469
colorTable[(int)
KnownColor
.Info] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.Info);
470
colorTable[(int)
KnownColor
.InfoText] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.InfoText);
471
colorTable[(int)
KnownColor
.Menu] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.Menu);
472
colorTable[(int)
KnownColor
.MenuBar] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.MenuBar);
473
colorTable[(int)
KnownColor
.MenuHighlight] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.MenuHighlight);
474
colorTable[(int)
KnownColor
.MenuText] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.MenuText);
475
colorTable[(int)
KnownColor
.ScrollBar] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.ScrollBar);
476
colorTable[(int)
KnownColor
.Window] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.Window);
477
colorTable[(int)
KnownColor
.WindowFrame] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.WindowFrame);
478
colorTable[(int)
KnownColor
.WindowText] = SystemColorToArgb((int)SafeNativeMethods.Win32SystemColors.WindowText);
commonui\System\Drawing\SystemBrushes.cs (6)
373
systemBrushes = new Brush[(int)
KnownColor
.WindowText + (int)
KnownColor
.MenuHighlight - (int)
KnownColor
.YellowGreen];
377
if (idx > (int)
KnownColor
.YellowGreen) {
378
idx -= (int)
KnownColor
.YellowGreen - (int)
KnownColor
.WindowText;
commonui\System\Drawing\SystemColors.cs (33)
34
return new Color(
KnownColor
.ActiveBorder);
44
return new Color(
KnownColor
.ActiveCaption);
54
return new Color(
KnownColor
.ActiveCaptionText);
66
return new Color(
KnownColor
.AppWorkspace);
78
return new Color(
KnownColor
.ButtonFace);
90
return new Color(
KnownColor
.ButtonHighlight);
102
return new Color(
KnownColor
.ButtonShadow);
112
return new Color(
KnownColor
.Control);
122
return new Color(
KnownColor
.ControlDark);
132
return new Color(
KnownColor
.ControlDarkDark);
142
return new Color(
KnownColor
.ControlLight);
152
return new Color(
KnownColor
.ControlLightLight);
162
return new Color(
KnownColor
.ControlText);
172
return new Color(
KnownColor
.Desktop);
185
return new Color(
KnownColor
.GradientActiveCaption);
198
return new Color(
KnownColor
.GradientInactiveCaption);
209
return new Color(
KnownColor
.GrayText);
220
return new Color(
KnownColor
.Highlight);
231
return new Color(
KnownColor
.HighlightText);
241
return new Color(
KnownColor
.HotTrack);
251
return new Color(
KnownColor
.InactiveBorder);
261
return new Color(
KnownColor
.InactiveCaption);
271
return new Color(
KnownColor
.InactiveCaptionText);
281
return new Color(
KnownColor
.Info);
291
return new Color(
KnownColor
.InfoText);
301
return new Color(
KnownColor
.Menu);
311
return new Color(
KnownColor
.MenuBar);
324
return new Color(
KnownColor
.MenuHighlight);
334
return new Color(
KnownColor
.MenuText);
345
return new Color(
KnownColor
.ScrollBar);
355
return new Color(
KnownColor
.Window);
365
return new Color(
KnownColor
.WindowFrame);
375
return new Color(
KnownColor
.WindowText);
commonui\System\Drawing\SystemPens.cs (6)
373
systemPens = new Pen[(int)
KnownColor
.WindowText + (int)
KnownColor
.MenuHighlight - (int)
KnownColor
.YellowGreen];
378
if (idx > (int)
KnownColor
.YellowGreen) {
379
idx -= (int)
KnownColor
.YellowGreen - (int)
KnownColor
.WindowText;
System.Web (28)
UI\ObjectStateFormatter.cs (1)
608
return Color.FromKnownColor((
KnownColor
)reader.ReadEncodedInt32());
UI\WebControls\WebColorConverter.cs (27)
137
t["activeborder"] = Color.FromKnownColor(
KnownColor
.ActiveBorder);
138
t["activecaption"] = Color.FromKnownColor(
KnownColor
.ActiveCaption);
139
t["appworkspace"] = Color.FromKnownColor(
KnownColor
.AppWorkspace);
140
t["background"] = Color.FromKnownColor(
KnownColor
.Desktop);
141
t["buttonface"] = Color.FromKnownColor(
KnownColor
.Control);
142
t["buttonhighlight"] = Color.FromKnownColor(
KnownColor
.ControlLightLight);
143
t["buttonshadow"] = Color.FromKnownColor(
KnownColor
.ControlDark);
144
t["buttontext"] = Color.FromKnownColor(
KnownColor
.ControlText);
145
t["captiontext"] = Color.FromKnownColor(
KnownColor
.ActiveCaptionText);
146
t["graytext"] = Color.FromKnownColor(
KnownColor
.GrayText);
147
t["highlight"] = Color.FromKnownColor(
KnownColor
.Highlight);
148
t["highlighttext"] = Color.FromKnownColor(
KnownColor
.HighlightText);
149
t["inactiveborder"] = Color.FromKnownColor(
KnownColor
.InactiveBorder);
150
t["inactivecaption"] = Color.FromKnownColor(
KnownColor
.InactiveCaption);
151
t["inactivecaptiontext"] = Color.FromKnownColor(
KnownColor
.InactiveCaptionText);
152
t["infobackground"] = Color.FromKnownColor(
KnownColor
.Info);
153
t["infotext"] = Color.FromKnownColor(
KnownColor
.InfoText);
154
t["menu"] = Color.FromKnownColor(
KnownColor
.Menu);
155
t["menutext"] = Color.FromKnownColor(
KnownColor
.MenuText);
156
t["scrollbar"] = Color.FromKnownColor(
KnownColor
.ScrollBar);
157
t["threeddarkshadow"] = Color.FromKnownColor(
KnownColor
.ControlDarkDark);
158
t["threedface"] = Color.FromKnownColor(
KnownColor
.Control);
159
t["threedhighlight"] = Color.FromKnownColor(
KnownColor
.ControlLight);
160
t["threedlightshadow"] = Color.FromKnownColor(
KnownColor
.ControlLightLight);
161
t["window"] = Color.FromKnownColor(
KnownColor
.Window);
162
t["windowframe"] = Color.FromKnownColor(
KnownColor
.WindowFrame);
163
t["windowtext"] = Color.FromKnownColor(
KnownColor
.WindowText);
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ControlPaint.cs (1)
434
ControlPaint.DrawBorder(graphics, bounds, Color.FromKnownColor(
KnownColor
.WindowFrame), ButtonBorderStyle.Solid);
winforms\Managed\System\WinForms\Help.cs (1)
175
pop.clrBackground = Color.FromKnownColor(
KnownColor
.Window).ToArgb() & 0x00ffffff;