88 references to FromKnownColor
System.Drawing (58)
commonui\System\Drawing\Advanced\ColorTranslator.cs (57)
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);
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\KnownColorTable.cs (1)
38
Color color = Color.
FromKnownColor
((KnownColor)index);
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;