42 references to WindowText
System.Drawing.Common (2)
System\Drawing\SystemBrushes.cs (1)
51
public static Brush WindowText => FromSystemColor(SystemColors.
WindowText
);
System\Drawing\SystemPens.cs (1)
52
public static Pen WindowText => FromSystemColor(SystemColors.
WindowText
);
System.Windows.Forms (23)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3332
qaContainer.colorFore = GetOleColorFromColor(SystemColors.
WindowText
);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
543
get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.
WindowText
;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
494
: SystemColors.
WindowText
;
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (3)
116
int r = (SystemColors.Window.R + SystemColors.
WindowText
.R + 1) / 2;
117
int g = SystemColors.
WindowText
.G;
118
int b = (SystemColors.Window.B + SystemColors.
WindowText
.B + 1) / 2;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
454
return SystemColors.
WindowText
;
System\Windows\Forms\Controls\ListView\ListView.cs (3)
106
private Color _odCacheForeColor = SystemColors.
WindowText
;
835
get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.
WindowText
;
4992
if (c != SystemColors.
WindowText
|| Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
422
return SystemColors.
WindowText
;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.cs (1)
173
return _owner?._listView?.ForeColor ?? SystemColors.
WindowText
;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
417
return SystemColors.
WindowText
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
140
ForeColor = SystemColors.
WindowText
;
383
if (ForeColor.ToArgb() == SystemColors.
WindowText
.ToArgb())
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
507
return SystemColors.
WindowText
;
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (1)
380
Color windowText = SystemColors.
WindowText
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (1)
55
Color c when c == SystemColors.
WindowText
=> Color.FromArgb(240, 240, 240),
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
238
get => SystemColors.
WindowText
;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
440
get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.
WindowText
;
1890
if (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)
594
Color 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)
35
ForeColor = SystemColors.
WindowText
,
171
_readOnlyTextBoxLabel.ForeColor = SystemColors.
WindowText
;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
394
Color ct = SystemColors.
WindowText
;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
185
ForeColor = SystemColors.
WindowText
;
System\Windows\Forms\Design\DesignBindingPicker.cs (8)
152
ForeColor = SystemColors.
WindowText
,
172
ForeColor = SystemColors.
WindowText
,
191
ForeColor = SystemColors.
WindowText
238
ForeColor = SystemColors.
WindowText
,
279
ForeColor = SystemColors.
WindowText
,
297
ForeColor = SystemColors.
WindowText
,
323
ForeColor = SystemColors.
WindowText
1586
_helpTextCtrl.ForeColor = SystemColors.
WindowText
;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (2)
773
textColor = SystemColors.
WindowText
;
903
TextRenderer.DrawText(e.Graphics, itemName, _selectedItemName.Font, textRect, SystemColors.
WindowText
, flags);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
837
ForeColor = SystemColors.
WindowText