42 references to WindowText
System.Drawing.Common (2)
System\Drawing\SystemBrushes.cs (1)
51public static Brush WindowText => FromSystemColor(SystemColors.WindowText);
System\Drawing\SystemPens.cs (1)
52public static Pen WindowText => FromSystemColor(SystemColors.WindowText);
System.Windows.Forms (23)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3332qaContainer.colorFore = GetOleColorFromColor(SystemColors.WindowText);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
543get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.WindowText;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
494: 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)
454return SystemColors.WindowText;
System\Windows\Forms\Controls\ListView\ListView.cs (3)
106private Color _odCacheForeColor = SystemColors.WindowText; 835get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.WindowText; 4992if (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)
417return SystemColors.WindowText;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
140ForeColor = SystemColors.WindowText; 383if (ForeColor.ToArgb() == SystemColors.WindowText.ToArgb())
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
507return SystemColors.WindowText;
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (1)
380Color windowText = SystemColors.WindowText;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (1)
55Color c when c == SystemColors.WindowText => Color.FromArgb(240, 240, 240),
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
238get => SystemColors.WindowText;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
440get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.WindowText; 1890if (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)
594Color 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)
185ForeColor = 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 1586_helpTextCtrl.ForeColor = SystemColors.WindowText;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (2)
773textColor = SystemColors.WindowText; 903TextRenderer.DrawText(e.Graphics, itemName, _selectedItemName.Font, textRect, SystemColors.WindowText, flags);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
837ForeColor = SystemColors.WindowText