97 references to FromKnownColor
BinaryFormatTests (1)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (1)
202Color.FromKnownColor(KnownColor.ActiveCaption),
System.Drawing.Primitives (92)
System\Drawing\ColorTranslator.cs (57)
145return Color.FromKnownColor(KnownColor.ActiveBorder); 147return Color.FromKnownColor(KnownColor.ActiveCaption); 149return Color.FromKnownColor(KnownColor.ActiveCaptionText); 151return Color.FromKnownColor(KnownColor.AppWorkspace); 153return Color.FromKnownColor(KnownColor.Control); 155return Color.FromKnownColor(KnownColor.ControlDark); 157return Color.FromKnownColor(KnownColor.ControlDarkDark); 159return Color.FromKnownColor(KnownColor.ControlLight); 161return Color.FromKnownColor(KnownColor.ControlLightLight); 163return Color.FromKnownColor(KnownColor.ControlText); 165return Color.FromKnownColor(KnownColor.Desktop); 167return Color.FromKnownColor(KnownColor.GradientActiveCaption); 169return Color.FromKnownColor(KnownColor.GradientInactiveCaption); 171return Color.FromKnownColor(KnownColor.GrayText); 173return Color.FromKnownColor(KnownColor.Highlight); 175return Color.FromKnownColor(KnownColor.HighlightText); 177return Color.FromKnownColor(KnownColor.HotTrack); 179return Color.FromKnownColor(KnownColor.InactiveBorder); 181return Color.FromKnownColor(KnownColor.InactiveCaption); 183return Color.FromKnownColor(KnownColor.InactiveCaptionText); 185return Color.FromKnownColor(KnownColor.Info); 187return Color.FromKnownColor(KnownColor.InfoText); 189return Color.FromKnownColor(KnownColor.Menu); 191return Color.FromKnownColor(KnownColor.MenuBar); 193return Color.FromKnownColor(KnownColor.MenuHighlight); 195return Color.FromKnownColor(KnownColor.MenuText); 197return Color.FromKnownColor(KnownColor.ScrollBar); 199return Color.FromKnownColor(KnownColor.Window); 201return Color.FromKnownColor(KnownColor.WindowFrame); 203return Color.FromKnownColor(KnownColor.WindowText); 404["activeborder"] = Color.FromKnownColor(KnownColor.ActiveBorder), 405["activecaption"] = Color.FromKnownColor(KnownColor.ActiveCaption), 406["appworkspace"] = Color.FromKnownColor(KnownColor.AppWorkspace), 407["background"] = Color.FromKnownColor(KnownColor.Desktop), 408["buttonface"] = Color.FromKnownColor(KnownColor.Control), 409["buttonhighlight"] = Color.FromKnownColor(KnownColor.ControlLightLight), 410["buttonshadow"] = Color.FromKnownColor(KnownColor.ControlDark), 411["buttontext"] = Color.FromKnownColor(KnownColor.ControlText), 412["captiontext"] = Color.FromKnownColor(KnownColor.ActiveCaptionText), 413["graytext"] = Color.FromKnownColor(KnownColor.GrayText), 414["highlight"] = Color.FromKnownColor(KnownColor.Highlight), 415["highlighttext"] = Color.FromKnownColor(KnownColor.HighlightText), 416["inactiveborder"] = Color.FromKnownColor(KnownColor.InactiveBorder), 417["inactivecaption"] = Color.FromKnownColor(KnownColor.InactiveCaption), 418["inactivecaptiontext"] = Color.FromKnownColor(KnownColor.InactiveCaptionText), 419["infobackground"] = Color.FromKnownColor(KnownColor.Info), 420["infotext"] = Color.FromKnownColor(KnownColor.InfoText), 421["menu"] = Color.FromKnownColor(KnownColor.Menu), 422["menutext"] = Color.FromKnownColor(KnownColor.MenuText), 423["scrollbar"] = Color.FromKnownColor(KnownColor.ScrollBar), 424["threeddarkshadow"] = Color.FromKnownColor(KnownColor.ControlDarkDark), 425["threedface"] = Color.FromKnownColor(KnownColor.Control), 426["threedhighlight"] = Color.FromKnownColor(KnownColor.ControlLight), 427["threedlightshadow"] = Color.FromKnownColor(KnownColor.ControlLightLight), 428["window"] = Color.FromKnownColor(KnownColor.Window), 429["windowframe"] = Color.FromKnownColor(KnownColor.WindowFrame), 430["windowtext"] = Color.FromKnownColor(KnownColor.WindowText)
System\Drawing\KnownColorTable.cs (1)
485return Color.FromKnownColor((KnownColor)index);
System\Drawing\SystemColors.cs (34)
12public static Color ActiveBorder => Color.FromKnownColor(KnownColor.ActiveBorder); 13public static Color ActiveCaption => Color.FromKnownColor(KnownColor.ActiveCaption); 14public static Color ActiveCaptionText => Color.FromKnownColor(KnownColor.ActiveCaptionText); 15public static Color AppWorkspace => Color.FromKnownColor(KnownColor.AppWorkspace); 17public static Color ButtonFace => Color.FromKnownColor(KnownColor.ButtonFace); 18public static Color ButtonHighlight => Color.FromKnownColor(KnownColor.ButtonHighlight); 19public static Color ButtonShadow => Color.FromKnownColor(KnownColor.ButtonShadow); 21public static Color Control => Color.FromKnownColor(KnownColor.Control); 22public static Color ControlDark => Color.FromKnownColor(KnownColor.ControlDark); 23public static Color ControlDarkDark => Color.FromKnownColor(KnownColor.ControlDarkDark); 24public static Color ControlLight => Color.FromKnownColor(KnownColor.ControlLight); 25public static Color ControlLightLight => Color.FromKnownColor(KnownColor.ControlLightLight); 26public static Color ControlText => Color.FromKnownColor(KnownColor.ControlText); 28public static Color Desktop => Color.FromKnownColor(KnownColor.Desktop); 30public static Color GradientActiveCaption => Color.FromKnownColor(KnownColor.GradientActiveCaption); 31public static Color GradientInactiveCaption => Color.FromKnownColor(KnownColor.GradientInactiveCaption); 32public static Color GrayText => Color.FromKnownColor(KnownColor.GrayText); 34public static Color Highlight => Color.FromKnownColor(KnownColor.Highlight); 35public static Color HighlightText => Color.FromKnownColor(KnownColor.HighlightText); 36public static Color HotTrack => Color.FromKnownColor(KnownColor.HotTrack); 38public static Color InactiveBorder => Color.FromKnownColor(KnownColor.InactiveBorder); 39public static Color InactiveCaption => Color.FromKnownColor(KnownColor.InactiveCaption); 40public static Color InactiveCaptionText => Color.FromKnownColor(KnownColor.InactiveCaptionText); 41public static Color Info => Color.FromKnownColor(KnownColor.Info); 42public static Color InfoText => Color.FromKnownColor(KnownColor.InfoText); 44public static Color Menu => Color.FromKnownColor(KnownColor.Menu); 45public static Color MenuBar => Color.FromKnownColor(KnownColor.MenuBar); 46public static Color MenuHighlight => Color.FromKnownColor(KnownColor.MenuHighlight); 47public static Color MenuText => Color.FromKnownColor(KnownColor.MenuText); 49public static Color ScrollBar => Color.FromKnownColor(KnownColor.ScrollBar); 51public static Color Window => Color.FromKnownColor(KnownColor.Window); 52public static Color WindowFrame => Color.FromKnownColor(KnownColor.WindowFrame); 53public static Color WindowText => Color.FromKnownColor(KnownColor.WindowText); 58/// <see cref="Color.FromKnownColor(KnownColor)"/>). This is currently "dark mode"
System.Private.Windows.Core (1)
System\Value.PackedColor.cs (1)
53? Color.FromKnownColor((KnownColor)_knownColor)
System.Windows.Forms (1)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
401DrawBorder(graphics, bounds, Color.FromKnownColor(KnownColor.WindowFrame), ButtonBorderStyle.Solid);
System.Windows.Forms.Tests (2)
System\Windows\Forms\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapterTests.cs (2)
57result.Should().Be(Color.FromKnownColor(expectedColor)); 71result.Should().Be(Color.FromKnownColor(expectedColor));