182 references to WindowText
System.Drawing.Common.Tests (4)
System\Drawing\ColorTranslatorTests.cs (2)
41yield return (unchecked((int)0x80000008), SystemColors.WindowText); 133yield return ("windowtext", SystemColors.WindowText);
System\Drawing\SystemBrushesTests.cs (1)
42yield return Brush(() => SystemBrushes.WindowText, SystemColors.WindowText);
System\Drawing\SystemPensTest.cs (1)
44yield return Pen(() => SystemPens.WindowText, SystemColors.WindowText);
System.Windows.Forms (22)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3335qaContainer.colorFore = GetOleColorFromColor(SystemColors.WindowText);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
538get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.WindowText;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
495: SystemColors.WindowText;
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (3)
116int r = (SystemColors.Window.R + SystemColors.WindowText.R + 1) / 2; 117int g = SystemColors.WindowText.G; 118int b = (SystemColors.Window.B + SystemColors.WindowText.B + 1) / 2;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
456return SystemColors.WindowText;
System\Windows\Forms\Controls\ListView\ListView.cs (3)
106private Color _odCacheForeColor = SystemColors.WindowText; 833get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.WindowText; 4946if (c != SystemColors.WindowText || Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
422return SystemColors.WindowText;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.cs (1)
173return _owner?._listView?.ForeColor ?? SystemColors.WindowText;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
421return SystemColors.WindowText;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
139ForeColor = SystemColors.WindowText; 360if (ForeColor.ToArgb() == SystemColors.WindowText.ToArgb())
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
506return SystemColors.WindowText;
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (1)
380Color windowText = SystemColors.WindowText;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
240get => SystemColors.WindowText;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
442get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.WindowText; 1892if (c != SystemColors.WindowText || Application.IsDarkModeEnabled)
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (2)
32: this(graphics, font, rect, index, state, SystemColors.WindowText, SystemColors.Window) 62: this(hdc, font, rect, index, state, SystemColors.WindowText, SystemColors.Window)
System.Windows.Forms.Design (15)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
580Color textColor = SystemColors.WindowText;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
131(Color OldColor, Color NewColor) map = new(Color.Black, SystemColors.WindowText);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (2)
35ForeColor = SystemColors.WindowText, 171_readOnlyTextBoxLabel.ForeColor = SystemColors.WindowText;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
394Color ct = SystemColors.WindowText;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
178ForeColor = SystemColors.WindowText;
System\Windows\Forms\Design\DesignBindingPicker.cs (8)
152ForeColor = SystemColors.WindowText, 172ForeColor = SystemColors.WindowText, 191ForeColor = SystemColors.WindowText 238ForeColor = SystemColors.WindowText, 279ForeColor = SystemColors.WindowText, 297ForeColor = SystemColors.WindowText, 323ForeColor = SystemColors.WindowText 1592_helpTextCtrl.ForeColor = SystemColors.WindowText;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
879ForeColor = SystemColors.WindowText
System.Windows.Forms.Tests (139)
System\Windows\Forms\ComboBoxTests.cs (6)
81Assert.Equal(SystemColors.WindowText, control.ForeColor); 1047yield return new object[] { Color.Empty, SystemColors.WindowText }; 1073yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1134Assert.Equal(SystemColors.WindowText, control.ForeColor); 1156Assert.Equal(SystemColors.WindowText, control.ForeColor); 1172Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (39)
78Assert.Equal(SystemColors.WindowText, control.ForeColor); 546yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false }; 572null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 581null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 590null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 599null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 608null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 617null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 627null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 636null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 645null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 654null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 663null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 672null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 682null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 691null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, false 700null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 709null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, false 718null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 727null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, false 755yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false }; 781null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 790null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 799null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 808null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 817null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 826null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 836null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 845null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 854null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 863null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 872null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 881null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 891null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 900null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, false 909null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 918null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, false 927null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 936null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, false
System\Windows\Forms\DateTimePickerTests.cs (1)
78Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\DomainUpDownTests.cs (1)
100_sub.ForeColor.Should().Be(SystemColors.WindowText);
System\Windows\Forms\DrawItemEventArgsTests.cs (3)
14yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), -1, DrawItemState.None, SystemColors.WindowText, SystemColors.Window }; 16yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus, SystemColors.WindowText, SystemColors.Window }; 17yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus | DrawItemState.NoFocusRect, SystemColors.WindowText, SystemColors.Window };
System\Windows\Forms\ListBoxTests.cs (9)
73Assert.Equal(SystemColors.WindowText, control.ForeColor); 1240yield return new object[] { Color.Empty, SystemColors.WindowText }; 1266yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1327Assert.Equal(SystemColors.WindowText, control.ForeColor); 1349Assert.Equal(SystemColors.WindowText, control.ForeColor); 1365Assert.Equal(SystemColors.WindowText, control.ForeColor); 5997Assert.Equal(SystemColors.WindowText, control.ForeColor); 6002Assert.Equal(SystemColors.WindowText, control.ForeColor); 6006Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\ListViewItemTests.cs (32)
21Assert.Equal(SystemColors.WindowText, item.ForeColor); 44yield return new object[] { null, null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 45yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 46yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, new ListViewGroup(), string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 82yield return new object[] { null, -1, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 83yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 84yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, new ListViewGroup(), SystemColors.WindowText, SystemColors.Window, string.Empty }; 120yield return new object[] { null, null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 121yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 122yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 158yield return new object[] { null, -1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 159yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 160yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 211Assert.Equal(SystemColors.WindowText, item.ForeColor); 248Assert.Equal(SystemColors.WindowText, item.ForeColor); 286Assert.Equal(SystemColors.WindowText, item.ForeColor); 324Assert.Equal(SystemColors.WindowText, item.ForeColor); 361Assert.Equal(SystemColors.WindowText, item.ForeColor); 399Assert.Equal(SystemColors.WindowText, item.ForeColor); 437Assert.Equal(SystemColors.WindowText, item.ForeColor); 474Assert.Equal(SystemColors.WindowText, item.ForeColor); 512Assert.Equal(SystemColors.WindowText, item.ForeColor); 550Assert.Equal(SystemColors.WindowText, item.ForeColor); 588Assert.Equal(SystemColors.WindowText, item.ForeColor); 625Assert.Equal(SystemColors.WindowText, item.ForeColor); 663Assert.Equal(SystemColors.WindowText, item.ForeColor); 701Assert.Equal(SystemColors.WindowText, item.ForeColor); 738Assert.Equal(SystemColors.WindowText, item.ForeColor); 777Assert.Equal(SystemColors.WindowText, item.ForeColor); 807Assert.Equal(SystemColors.WindowText, item.ForeColor); 904yield return new object[] { Color.Empty, SystemColors.WindowText }; 925Assert.Equal(SystemColors.WindowText, item.ForeColor);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (2)
257yield return new object[] { null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 387yield return new object[] { Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window };
System\Windows\Forms\ListViewSubItemTests.cs (12)
20Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 46Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 54yield return new object[] { null, null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 342Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 353Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 357Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 378Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 383yield return new object[] { Color.Empty, SystemColors.WindowText }; 544Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 549Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 561Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 566Assert.Equal(SystemColors.WindowText, subItem.ForeColor);
System\Windows\Forms\ListViewTests.cs (4)
81Assert.Equal(SystemColors.WindowText, control.ForeColor); 1308yield return new object[] { Color.Empty, SystemColors.WindowText }; 1334yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1405Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\MonthCalendarTests.cs (4)
83Assert.Equal(SystemColors.WindowText, control.ForeColor); 921yield return new object[] { Color.Empty, SystemColors.WindowText }; 947yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1008Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\PropertyGridTests.cs (3)
164Assert.Equal(SystemColors.WindowText, control.ViewForeColor); 3430Assert.Equal(SystemColors.WindowText, control.ViewForeColor); 3446Assert.Equal(SystemColors.WindowText, control.ViewForeColor);
System\Windows\Forms\RichTextBoxTests.cs (4)
82Assert.Equal(SystemColors.WindowText, control.ForeColor); 1677yield return new object[] { Color.Empty, SystemColors.WindowText }; 1703yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1803Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\TreeViewTests.cs (3)
67Assert.Equal(SystemColors.WindowText, control.ForeColor); 1459yield return new object[] { Color.Empty, SystemColors.WindowText }; 1521Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\UpDownBaseTests.cs (3)
87Assert.Equal(SystemColors.WindowText, control.ForeColor); 935yield return new object[] { Color.Empty, SystemColors.WindowText }; 1013Assert.Equal(SystemColors.WindowText, control.ForeColor);
TextBoxBaseTests.cs (3)
1161yield return new object[] { Color.Empty, SystemColors.WindowText }; 1187yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1248Assert.Equal(SystemColors.WindowText, control.ForeColor);
TextBoxTests.cs (1)
72Assert.Equal(SystemColors.WindowText, control.ForeColor);
TrackBarTests.cs (9)
65Assert.Equal(SystemColors.WindowText, control.ForeColor); 699Assert.Equal(SystemColors.WindowText, control.ForeColor); 704Assert.Equal(SystemColors.WindowText, control.ForeColor); 722Assert.Equal(SystemColors.WindowText, control.ForeColor); 730Assert.Equal(SystemColors.WindowText, control.ForeColor); 752Assert.Equal(SystemColors.WindowText, control.ForeColor); 757Assert.Equal(SystemColors.WindowText, control.ForeColor); 762Assert.Equal(SystemColors.WindowText, control.ForeColor); 768Assert.Equal(SystemColors.WindowText, control.ForeColor);
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
356_propertyGrid.ViewForeColor.Should().Be(SystemColors.WindowText);
WinFormsControlsTest (1)
DataGridViewTest.Designer.cs (1)
59dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;