184 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)
239get => 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 (17)
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\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (2)
777textColor = SystemColors.WindowText; 910TextRenderer.DrawText(e.Graphics, itemName, _selectedItemName.Font, textRect, SystemColors.WindowText, flags);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
879ForeColor = SystemColors.WindowText
System.Windows.Forms.Tests (139)
System\Windows\Forms\ComboBoxTests.cs (6)
83Assert.Equal(SystemColors.WindowText, control.ForeColor); 1049yield return new object[] { Color.Empty, SystemColors.WindowText }; 1075yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1136Assert.Equal(SystemColors.WindowText, control.ForeColor); 1158Assert.Equal(SystemColors.WindowText, control.ForeColor); 1174Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (39)
80Assert.Equal(SystemColors.WindowText, control.ForeColor); 548yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false }; 574null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 583null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 592null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 601null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 610null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 619null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 629null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 638null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 647null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 656null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 665null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 674null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 684null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 693null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, false 702null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 711null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, false 720null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 729null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, false 757yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false }; 783null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 792null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 801null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 810null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 819null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 828null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 838null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 847null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 856null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 865null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 874null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 883null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 893null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 902null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, false 911null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 920null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, false 929null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 938null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, false
System\Windows\Forms\DateTimePickerTests.cs (1)
80Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\DomainUpDownTests.cs (1)
102_sub.ForeColor.Should().Be(SystemColors.WindowText);
System\Windows\Forms\DrawItemEventArgsTests.cs (3)
16yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), -1, DrawItemState.None, SystemColors.WindowText, SystemColors.Window }; 18yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus, SystemColors.WindowText, SystemColors.Window }; 19yield 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)
75Assert.Equal(SystemColors.WindowText, control.ForeColor); 1242yield return new object[] { Color.Empty, SystemColors.WindowText }; 1268yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1329Assert.Equal(SystemColors.WindowText, control.ForeColor); 1351Assert.Equal(SystemColors.WindowText, control.ForeColor); 1367Assert.Equal(SystemColors.WindowText, control.ForeColor); 5999Assert.Equal(SystemColors.WindowText, control.ForeColor); 6004Assert.Equal(SystemColors.WindowText, control.ForeColor); 6008Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\ListViewItemTests.cs (32)
23Assert.Equal(SystemColors.WindowText, item.ForeColor); 46yield return new object[] { null, null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 47yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 48yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, new ListViewGroup(), string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 84yield return new object[] { null, -1, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 85yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 86yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, new ListViewGroup(), SystemColors.WindowText, SystemColors.Window, string.Empty }; 122yield return new object[] { null, null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 123yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 124yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 160yield return new object[] { null, -1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 161yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 162yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 213Assert.Equal(SystemColors.WindowText, item.ForeColor); 250Assert.Equal(SystemColors.WindowText, item.ForeColor); 288Assert.Equal(SystemColors.WindowText, item.ForeColor); 326Assert.Equal(SystemColors.WindowText, item.ForeColor); 363Assert.Equal(SystemColors.WindowText, item.ForeColor); 401Assert.Equal(SystemColors.WindowText, item.ForeColor); 439Assert.Equal(SystemColors.WindowText, item.ForeColor); 476Assert.Equal(SystemColors.WindowText, item.ForeColor); 514Assert.Equal(SystemColors.WindowText, item.ForeColor); 552Assert.Equal(SystemColors.WindowText, item.ForeColor); 590Assert.Equal(SystemColors.WindowText, item.ForeColor); 627Assert.Equal(SystemColors.WindowText, item.ForeColor); 665Assert.Equal(SystemColors.WindowText, item.ForeColor); 703Assert.Equal(SystemColors.WindowText, item.ForeColor); 740Assert.Equal(SystemColors.WindowText, item.ForeColor); 779Assert.Equal(SystemColors.WindowText, item.ForeColor); 809Assert.Equal(SystemColors.WindowText, item.ForeColor); 906yield return new object[] { Color.Empty, SystemColors.WindowText }; 927Assert.Equal(SystemColors.WindowText, item.ForeColor);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (2)
259yield return new object[] { null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 389yield return new object[] { Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window };
System\Windows\Forms\ListViewSubItemTests.cs (12)
22Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 48Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 56yield return new object[] { null, null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 344Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 355Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 359Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 380Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 385yield return new object[] { Color.Empty, SystemColors.WindowText }; 546Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 551Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 563Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 568Assert.Equal(SystemColors.WindowText, subItem.ForeColor);
System\Windows\Forms\ListViewTests.cs (4)
83Assert.Equal(SystemColors.WindowText, control.ForeColor); 1310yield return new object[] { Color.Empty, SystemColors.WindowText }; 1336yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1407Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\MonthCalendarTests.cs (4)
85Assert.Equal(SystemColors.WindowText, control.ForeColor); 923yield return new object[] { Color.Empty, SystemColors.WindowText }; 949yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1010Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\PropertyGridTests.cs (3)
166Assert.Equal(SystemColors.WindowText, control.ViewForeColor); 3432Assert.Equal(SystemColors.WindowText, control.ViewForeColor); 3448Assert.Equal(SystemColors.WindowText, control.ViewForeColor);
System\Windows\Forms\RichTextBoxTests.cs (4)
84Assert.Equal(SystemColors.WindowText, control.ForeColor); 1679yield return new object[] { Color.Empty, SystemColors.WindowText }; 1705yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1805Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\TreeViewTests.cs (3)
69Assert.Equal(SystemColors.WindowText, control.ForeColor); 1461yield return new object[] { Color.Empty, SystemColors.WindowText }; 1523Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\UpDownBaseTests.cs (3)
89Assert.Equal(SystemColors.WindowText, control.ForeColor); 937yield return new object[] { Color.Empty, SystemColors.WindowText }; 1015Assert.Equal(SystemColors.WindowText, control.ForeColor);
TextBoxBaseTests.cs (3)
1163yield return new object[] { Color.Empty, SystemColors.WindowText }; 1189yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1250Assert.Equal(SystemColors.WindowText, control.ForeColor);
TextBoxTests.cs (1)
74Assert.Equal(SystemColors.WindowText, control.ForeColor);
TrackBarTests.cs (9)
67Assert.Equal(SystemColors.WindowText, control.ForeColor); 701Assert.Equal(SystemColors.WindowText, control.ForeColor); 706Assert.Equal(SystemColors.WindowText, control.ForeColor); 724Assert.Equal(SystemColors.WindowText, control.ForeColor); 732Assert.Equal(SystemColors.WindowText, control.ForeColor); 754Assert.Equal(SystemColors.WindowText, control.ForeColor); 759Assert.Equal(SystemColors.WindowText, control.ForeColor); 764Assert.Equal(SystemColors.WindowText, control.ForeColor); 770Assert.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;