375 references to KnownColor
BinaryFormatTests (1)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (1)
205Color.FromKnownColor(KnownColor.ActiveCaption),
netstandard (1)
netstandard.cs (1)
747[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.KnownColor))]
System.Drawing (1)
System.Drawing.cs (1)
102[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.KnownColor))]
System.Drawing.Primitives (322)
System\Drawing\Color.cs (155)
24public static Color Transparent => new Color(KnownColor.Transparent); 26public static Color AliceBlue => new Color(KnownColor.AliceBlue); 28public static Color AntiqueWhite => new Color(KnownColor.AntiqueWhite); 30public static Color Aqua => new Color(KnownColor.Aqua); 32public static Color Aquamarine => new Color(KnownColor.Aquamarine); 34public static Color Azure => new Color(KnownColor.Azure); 36public static Color Beige => new Color(KnownColor.Beige); 38public static Color Bisque => new Color(KnownColor.Bisque); 40public static Color Black => new Color(KnownColor.Black); 42public static Color BlanchedAlmond => new Color(KnownColor.BlanchedAlmond); 44public static Color Blue => new Color(KnownColor.Blue); 46public static Color BlueViolet => new Color(KnownColor.BlueViolet); 48public static Color Brown => new Color(KnownColor.Brown); 50public static Color BurlyWood => new Color(KnownColor.BurlyWood); 52public static Color CadetBlue => new Color(KnownColor.CadetBlue); 54public static Color Chartreuse => new Color(KnownColor.Chartreuse); 56public static Color Chocolate => new Color(KnownColor.Chocolate); 58public static Color Coral => new Color(KnownColor.Coral); 60public static Color CornflowerBlue => new Color(KnownColor.CornflowerBlue); 62public static Color Cornsilk => new Color(KnownColor.Cornsilk); 64public static Color Crimson => new Color(KnownColor.Crimson); 66public static Color Cyan => new Color(KnownColor.Cyan); 68public static Color DarkBlue => new Color(KnownColor.DarkBlue); 70public static Color DarkCyan => new Color(KnownColor.DarkCyan); 72public static Color DarkGoldenrod => new Color(KnownColor.DarkGoldenrod); 74public static Color DarkGray => new Color(KnownColor.DarkGray); 76public static Color DarkGreen => new Color(KnownColor.DarkGreen); 78public static Color DarkKhaki => new Color(KnownColor.DarkKhaki); 80public static Color DarkMagenta => new Color(KnownColor.DarkMagenta); 82public static Color DarkOliveGreen => new Color(KnownColor.DarkOliveGreen); 84public static Color DarkOrange => new Color(KnownColor.DarkOrange); 86public static Color DarkOrchid => new Color(KnownColor.DarkOrchid); 88public static Color DarkRed => new Color(KnownColor.DarkRed); 90public static Color DarkSalmon => new Color(KnownColor.DarkSalmon); 92public static Color DarkSeaGreen => new Color(KnownColor.DarkSeaGreen); 94public static Color DarkSlateBlue => new Color(KnownColor.DarkSlateBlue); 96public static Color DarkSlateGray => new Color(KnownColor.DarkSlateGray); 98public static Color DarkTurquoise => new Color(KnownColor.DarkTurquoise); 100public static Color DarkViolet => new Color(KnownColor.DarkViolet); 102public static Color DeepPink => new Color(KnownColor.DeepPink); 104public static Color DeepSkyBlue => new Color(KnownColor.DeepSkyBlue); 106public static Color DimGray => new Color(KnownColor.DimGray); 108public static Color DodgerBlue => new Color(KnownColor.DodgerBlue); 110public static Color Firebrick => new Color(KnownColor.Firebrick); 112public static Color FloralWhite => new Color(KnownColor.FloralWhite); 114public static Color ForestGreen => new Color(KnownColor.ForestGreen); 116public static Color Fuchsia => new Color(KnownColor.Fuchsia); 118public static Color Gainsboro => new Color(KnownColor.Gainsboro); 120public static Color GhostWhite => new Color(KnownColor.GhostWhite); 122public static Color Gold => new Color(KnownColor.Gold); 124public static Color Goldenrod => new Color(KnownColor.Goldenrod); 126public static Color Gray => new Color(KnownColor.Gray); 128public static Color Green => new Color(KnownColor.Green); 130public static Color GreenYellow => new Color(KnownColor.GreenYellow); 132public static Color Honeydew => new Color(KnownColor.Honeydew); 134public static Color HotPink => new Color(KnownColor.HotPink); 136public static Color IndianRed => new Color(KnownColor.IndianRed); 138public static Color Indigo => new Color(KnownColor.Indigo); 140public static Color Ivory => new Color(KnownColor.Ivory); 142public static Color Khaki => new Color(KnownColor.Khaki); 144public static Color Lavender => new Color(KnownColor.Lavender); 146public static Color LavenderBlush => new Color(KnownColor.LavenderBlush); 148public static Color LawnGreen => new Color(KnownColor.LawnGreen); 150public static Color LemonChiffon => new Color(KnownColor.LemonChiffon); 152public static Color LightBlue => new Color(KnownColor.LightBlue); 154public static Color LightCoral => new Color(KnownColor.LightCoral); 156public static Color LightCyan => new Color(KnownColor.LightCyan); 158public static Color LightGoldenrodYellow => new Color(KnownColor.LightGoldenrodYellow); 160public static Color LightGreen => new Color(KnownColor.LightGreen); 162public static Color LightGray => new Color(KnownColor.LightGray); 164public static Color LightPink => new Color(KnownColor.LightPink); 166public static Color LightSalmon => new Color(KnownColor.LightSalmon); 168public static Color LightSeaGreen => new Color(KnownColor.LightSeaGreen); 170public static Color LightSkyBlue => new Color(KnownColor.LightSkyBlue); 172public static Color LightSlateGray => new Color(KnownColor.LightSlateGray); 174public static Color LightSteelBlue => new Color(KnownColor.LightSteelBlue); 176public static Color LightYellow => new Color(KnownColor.LightYellow); 178public static Color Lime => new Color(KnownColor.Lime); 180public static Color LimeGreen => new Color(KnownColor.LimeGreen); 182public static Color Linen => new Color(KnownColor.Linen); 184public static Color Magenta => new Color(KnownColor.Magenta); 186public static Color Maroon => new Color(KnownColor.Maroon); 188public static Color MediumAquamarine => new Color(KnownColor.MediumAquamarine); 190public static Color MediumBlue => new Color(KnownColor.MediumBlue); 192public static Color MediumOrchid => new Color(KnownColor.MediumOrchid); 194public static Color MediumPurple => new Color(KnownColor.MediumPurple); 196public static Color MediumSeaGreen => new Color(KnownColor.MediumSeaGreen); 198public static Color MediumSlateBlue => new Color(KnownColor.MediumSlateBlue); 200public static Color MediumSpringGreen => new Color(KnownColor.MediumSpringGreen); 202public static Color MediumTurquoise => new Color(KnownColor.MediumTurquoise); 204public static Color MediumVioletRed => new Color(KnownColor.MediumVioletRed); 206public static Color MidnightBlue => new Color(KnownColor.MidnightBlue); 208public static Color MintCream => new Color(KnownColor.MintCream); 210public static Color MistyRose => new Color(KnownColor.MistyRose); 212public static Color Moccasin => new Color(KnownColor.Moccasin); 214public static Color NavajoWhite => new Color(KnownColor.NavajoWhite); 216public static Color Navy => new Color(KnownColor.Navy); 218public static Color OldLace => new Color(KnownColor.OldLace); 220public static Color Olive => new Color(KnownColor.Olive); 222public static Color OliveDrab => new Color(KnownColor.OliveDrab); 224public static Color Orange => new Color(KnownColor.Orange); 226public static Color OrangeRed => new Color(KnownColor.OrangeRed); 228public static Color Orchid => new Color(KnownColor.Orchid); 230public static Color PaleGoldenrod => new Color(KnownColor.PaleGoldenrod); 232public static Color PaleGreen => new Color(KnownColor.PaleGreen); 234public static Color PaleTurquoise => new Color(KnownColor.PaleTurquoise); 236public static Color PaleVioletRed => new Color(KnownColor.PaleVioletRed); 238public static Color PapayaWhip => new Color(KnownColor.PapayaWhip); 240public static Color PeachPuff => new Color(KnownColor.PeachPuff); 242public static Color Peru => new Color(KnownColor.Peru); 244public static Color Pink => new Color(KnownColor.Pink); 246public static Color Plum => new Color(KnownColor.Plum); 248public static Color PowderBlue => new Color(KnownColor.PowderBlue); 250public static Color Purple => new Color(KnownColor.Purple); 256public static Color RebeccaPurple => new Color(KnownColor.RebeccaPurple); 258public static Color Red => new Color(KnownColor.Red); 260public static Color RosyBrown => new Color(KnownColor.RosyBrown); 262public static Color RoyalBlue => new Color(KnownColor.RoyalBlue); 264public static Color SaddleBrown => new Color(KnownColor.SaddleBrown); 266public static Color Salmon => new Color(KnownColor.Salmon); 268public static Color SandyBrown => new Color(KnownColor.SandyBrown); 270public static Color SeaGreen => new Color(KnownColor.SeaGreen); 272public static Color SeaShell => new Color(KnownColor.SeaShell); 274public static Color Sienna => new Color(KnownColor.Sienna); 276public static Color Silver => new Color(KnownColor.Silver); 278public static Color SkyBlue => new Color(KnownColor.SkyBlue); 280public static Color SlateBlue => new Color(KnownColor.SlateBlue); 282public static Color SlateGray => new Color(KnownColor.SlateGray); 284public static Color Snow => new Color(KnownColor.Snow); 286public static Color SpringGreen => new Color(KnownColor.SpringGreen); 288public static Color SteelBlue => new Color(KnownColor.SteelBlue); 290public static Color Tan => new Color(KnownColor.Tan); 292public static Color Teal => new Color(KnownColor.Teal); 294public static Color Thistle => new Color(KnownColor.Thistle); 296public static Color Tomato => new Color(KnownColor.Tomato); 298public static Color Turquoise => new Color(KnownColor.Turquoise); 300public static Color Violet => new Color(KnownColor.Violet); 302public static Color Wheat => new Color(KnownColor.Wheat); 304public static Color White => new Color(KnownColor.White); 306public static Color WhiteSmoke => new Color(KnownColor.WhiteSmoke); 308public static Color Yellow => new Color(KnownColor.Yellow); 310public static Color YellowGreen => new Color(KnownColor.YellowGreen); 348internal Color(KnownColor knownColor) 356private Color(long value, short state, string? name, KnownColor knownColor) 378public bool IsSystemColor => IsKnownColor && IsKnownColorSystem((KnownColor)knownColor); 380internal static bool IsKnownColorSystem(KnownColor knownColor) 401string tablename = KnownColorNames.KnownColorToName((KnownColor)knownColor); 402Debug.Assert(tablename != null, $"Could not find known color '{(KnownColor)knownColor}' in the KnownColorTable"); 425return KnownColorTable.KnownColorToArgb((KnownColor)knownColor); 441private static Color FromArgb(uint argb) => new Color(argb, StateARGBValueValid, null, (KnownColor)0); 472public static Color FromKnownColor(KnownColor color) => 473color <= 0 || color > KnownColor.RebeccaPurple ? FromName(color.ToString()) : new Color(color); 482return new Color(NotDefinedValue, StateNameValid, name, (KnownColor)0); 570public KnownColor ToKnownColor() => (KnownColor)knownColor;
System\Drawing\ColorTranslator.cs (120)
60case KnownColor.ActiveBorder: 62case KnownColor.ActiveCaption: 64case KnownColor.ActiveCaptionText: 66case KnownColor.AppWorkspace: 68case KnownColor.ButtonFace: 70case KnownColor.ButtonHighlight: 72case KnownColor.ButtonShadow: 74case KnownColor.Control: 76case KnownColor.ControlDark: 78case KnownColor.ControlDarkDark: 80case KnownColor.ControlLight: 82case KnownColor.ControlLightLight: 84case KnownColor.ControlText: 86case KnownColor.Desktop: 88case KnownColor.GradientActiveCaption: 90case KnownColor.GradientInactiveCaption: 92case KnownColor.GrayText: 94case KnownColor.Highlight: 96case KnownColor.HighlightText: 98case KnownColor.HotTrack: 100case KnownColor.InactiveBorder: 102case KnownColor.InactiveCaption: 104case KnownColor.InactiveCaptionText: 106case KnownColor.Info: 108case KnownColor.InfoText: 110case KnownColor.Menu: 112case KnownColor.MenuBar: 114case KnownColor.MenuHighlight: 116case KnownColor.MenuText: 118case KnownColor.ScrollBar: 120case KnownColor.Window: 122case KnownColor.WindowFrame: 124case KnownColor.WindowText: 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); 299case KnownColor.ActiveBorder: 302case KnownColor.GradientActiveCaption: 303case KnownColor.ActiveCaption: 306case KnownColor.AppWorkspace: 309case KnownColor.Desktop: 312case KnownColor.Control: 313case KnownColor.ControlLight: 316case KnownColor.ControlDark: 319case KnownColor.ControlText: 322case KnownColor.ActiveCaptionText: 325case KnownColor.GrayText: 328case KnownColor.HotTrack: 329case KnownColor.Highlight: 332case KnownColor.MenuHighlight: 333case KnownColor.HighlightText: 336case KnownColor.InactiveBorder: 339case KnownColor.GradientInactiveCaption: 340case KnownColor.InactiveCaption: 343case KnownColor.InactiveCaptionText: 346case KnownColor.Info: 349case KnownColor.InfoText: 352case KnownColor.MenuBar: 353case KnownColor.Menu: 356case KnownColor.MenuText: 359case KnownColor.ScrollBar: 362case KnownColor.ControlDarkDark: 365case KnownColor.ControlLightLight: 368case KnownColor.Window: 371case KnownColor.WindowFrame: 374case 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\KnownColorNames.cs (2)
197public static string KnownColorToName(KnownColor color) 199Debug.Assert(color > 0 && color <= KnownColor.RebeccaPurple);
System\Drawing\KnownColorTable.cs (8)
485return Color.FromKnownColor((KnownColor)index); 493public static uint KnownColorToArgb(KnownColor color) 495Debug.Assert(color > 0 && color <= KnownColor.RebeccaPurple); 502private static uint GetAlternateSystemColorArgb(KnownColor color) 505int index = color <= KnownColor.WindowText 507: (int)color - (int)KnownColor.ButtonFace + (int)KnownColor.WindowText + 1; 539public static uint GetSystemColorArgb(KnownColor color)
System\Drawing\SystemColors.cs (37)
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); 56/// When <see langword="true"/>, system <see cref="KnownColor"/> values will return 58/// <see cref="Color.FromKnownColor(KnownColor)"/>). This is currently "dark mode" 63/// <see cref="KnownColor"/> <see cref="Color"/> values are always looked up every 68/// On Windows, system <see cref="KnownColor"/> values will always return the current
System.Private.Windows.Core (5)
System\Private\Windows\Core\Nrbf\SerializationRecordExtensions.cs (2)
288BindingFlags.Instance | BindingFlags.NonPublic, [typeof(long), typeof(short), typeof(string), typeof(KnownColor)]); 298(KnownColor)Convert.ToInt32(classInfo.GetInt16("knownColor"))]);
System\Value.PackedColor.cs (3)
17private PackedColor(int argb, KnownColor knownColor, short state) 48packedColor = new PackedColor((int)castColor.Argb, (KnownColor)castColor.KnownColor, castColor.State); 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.Primitives (36)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (36)
82private static Brush? BrushFromKnownColor(KnownColor color) => color switch 85KnownColor.Black => Brushes.Black, 86KnownColor.White => Brushes.White, 87KnownColor.Gray => Brushes.Gray, 88KnownColor.Red => Brushes.Red, 89KnownColor.Green => Brushes.Green, 90KnownColor.Blue => Brushes.Blue, 91KnownColor.Yellow => Brushes.Yellow, 92KnownColor.Brown => Brushes.Brown, 93KnownColor.LightGray => Brushes.LightGray, 94KnownColor.LightGreen => Brushes.LightGreen, 95KnownColor.LightBlue => Brushes.LightBlue, 96KnownColor.LightYellow => Brushes.LightYellow, 97KnownColor.DarkGray => Brushes.DarkGray, 98KnownColor.DarkRed => Brushes.DarkRed, 99KnownColor.DarkGreen => Brushes.DarkGreen, 100KnownColor.DarkBlue => Brushes.DarkBlue, 101KnownColor.Transparent => Brushes.Transparent, 105private static Pen? PenFromKnownColor(KnownColor color) => color switch 108KnownColor.Black => Pens.Black, 109KnownColor.White => Pens.White, 110KnownColor.Gray => Pens.Gray, 111KnownColor.Red => Pens.Red, 112KnownColor.Green => Pens.Green, 113KnownColor.Blue => Pens.Blue, 114KnownColor.Yellow => Pens.Yellow, 115KnownColor.Brown => Pens.Brown, 116KnownColor.LightGray => Pens.LightGray, 117KnownColor.LightGreen => Pens.LightGreen, 118KnownColor.LightBlue => Pens.LightBlue, 119KnownColor.LightYellow => Pens.LightYellow, 120KnownColor.DarkGray => Pens.DarkGray, 121KnownColor.DarkRed => Pens.DarkRed, 122KnownColor.DarkGreen => Pens.DarkGreen, 123KnownColor.DarkBlue => Pens.DarkBlue, 124KnownColor.Transparent => Pens.Transparent,
System.Windows.Forms.Tests (8)
System\Windows\Forms\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapterTests.cs (8)
49[InlineData(true, KnownColor.Window)] 50[InlineData(false, KnownColor.ControlDark)] 51public void GetOuterBorderColor_ReturnsExpected(bool enabled, KnownColor expectedColor) 61[InlineData(true, true, KnownColor.ControlDark)] 62[InlineData(true, false, KnownColor.Window)] 63[InlineData(false, true, KnownColor.ControlDark)] 64[InlineData(false, false, KnownColor.ControlDark)] 65public void GetPopupOuterBorderColor_ReturnsExpected(bool enabled, bool focused, KnownColor expectedColor)