18 overrides of ForeColor
System.Windows.Forms (18)
System\Windows\Forms\ActiveX\AxHost.cs (1)
346public override Color ForeColor
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
536public override Color ForeColor
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2599public override Color ForeColor
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
489public override Color ForeColor
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
446public override Color ForeColor
System\Windows\Forms\Controls\ListView\ListView.cs (1)
831public override Color ForeColor
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
412public override Color ForeColor
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
264public override Color ForeColor
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
574public override Color ForeColor
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
110public override Color ForeColor
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
249public override Color ForeColor
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
496public override Color ForeColor
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
238public override Color ForeColor
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
440public override Color ForeColor
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
264public override Color ForeColor
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1261public override Color ForeColor
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
539public override Color ForeColor
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
153public override Color ForeColor
114 writes to ForeColor
Accessibility_Core_App (1)
ContainerControls2.Designer.cs (1)
290groupBox5.ForeColor = SystemColors.Control;
System.Windows.Forms (33)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
160control.ForeColor = GetColorFromOleColor(value);
System\Windows\Forms\ActiveX\AxHost.cs (1)
349set => base.ForeColor = value;
System\Windows\Forms\Control.cs (1)
9056ForeColor = Color.Empty;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
539set => base.ForeColor = value;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2602set => base.ForeColor = value;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
498set => base.ForeColor = value;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
459set => base.ForeColor = value;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
836base.ForeColor = value;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
423set => base.ForeColor = value;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
267set => base.ForeColor = value;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (2)
45ForeColor = s_defaultForeColor; 657ForeColor = s_defaultForeColor;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (5)
215_helpPane.ForeColor = SystemColors.ControlText; 445_commandsPane.ForeColor = value; 446_commandsPane.Label.ForeColor = value; 577set => base.ForeColor = value; 643set => _helpPane.ForeColor = value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
154Label.ForeColor = normalText;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
139ForeColor = SystemColors.WindowText; 209_dropDownButton.ForeColor = SystemColors.ControlText; 245ForeColor = SystemColors.ControlText,
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
113set => base.ForeColor = value;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
252set => base.ForeColor = value;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
509set => base.ForeColor = value;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
762set => base.ForeColor = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
244set => base.ForeColor = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
216set => ControlInternal.ForeColor = value;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
445base.ForeColor = value;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
269base.ForeColor = value;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1264set => base.ForeColor = value;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
298public override void ResetForeColor() => ForeColor = Color.White;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
542set => base.ForeColor = value;
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
156set => base.ForeColor = value;
System.Windows.Forms.Design (21)
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
24ForeColor = ActionPanel.LabelForeColor
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (2)
26ForeColor = ActionPanel.TitleBarTextColor, 34ForeColor = ActionPanel.TitleBarTextColor,
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (4)
27ForeColor = ActionPanel.LabelForeColor, 35ForeColor = SystemColors.WindowText, 165_readOnlyTextBoxLabel.ForeColor = SystemColors.HighlightText; 171_readOnlyTextBoxLabel.ForeColor = SystemColors.WindowText;
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
23ForeColor = ActionPanel.LabelForeColor,
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (1)
111ForeColor = SystemColors.ControlText;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
178ForeColor = SystemColors.WindowText;
System\Windows\Forms\Design\ComponentTray.cs (4)
149ForeColor = backgroundTextColor; 153ForeColor = panelTextColor; 1429ctl.ForeColor = ForeColor; 1460c.ForeColor = SystemColors.HighlightText;
System\Windows\Forms\Design\DesignBindingPicker.cs (6)
152ForeColor = SystemColors.WindowText, 191ForeColor = SystemColors.WindowText 279ForeColor = SystemColors.WindowText, 323ForeColor = SystemColors.WindowText 1585_helpTextCtrl.ForeColor = SystemColors.InfoText; 1590_helpTextCtrl.ForeColor = SystemColors.WindowText;
System\Windows\Forms\Design\DockEditor.DockUI.cs (1)
188ForeColor = SystemColors.ControlText;
System.Windows.Forms.Tests (58)
System\Windows\Forms\ControlTests.ControlCollection.cs (8)
652owner.ForeColor = Color.Red; 802owner.ForeColor = Color.Red; 955owner.ForeColor = Color.Red; 1028owner.ForeColor = Color.Red; 2355owner.ForeColor = Color.Red; 2499owner.ForeColor = Color.Red; 2631owner.ForeColor = Color.Red; 2695owner.ForeColor = Color.Red;
System\Windows\Forms\ControlTests.Handlers.cs (3)
2007ForeColor = Color.Yellow 2011ForeColor = Color.YellowGreen 4543ForeColor = Color.Red
System\Windows\Forms\ControlTests.Methods.cs (1)
6464control.ForeColor = Color.Black;
System\Windows\Forms\ControlTests.Properties.cs (31)
5295ForeColor = value 5301control.ForeColor = value; 5312ForeColor = Color.YellowGreen 5315control.ForeColor = value; 5320control.ForeColor = value; 5335control.ForeColor = value; 5342control.ForeColor = value; 5355ForeColor = Color.Yellow 5359ForeColor = Color.YellowGreen 5365control.ForeColor = value; 5372control.ForeColor = value; 5399control.ForeColor = value; 5407control.ForeColor = value; 5429control.ForeColor = Color.Red; 5434control.ForeColor = Color.Red; 5439control.ForeColor = Color.Empty; 5445control.ForeColor = Color.Red; 5464control.ForeColor = Color.Red; 5516control.ForeColor = Color.Red; 5525control.ForeColor = Color.Red; 5534control.ForeColor = Color.Empty; 5546control.ForeColor = Color.Red; 5560ForeColor = Color.Yellow 5564ForeColor = Color.YellowGreen 5596control.ForeColor = Color.Red; 5605control.ForeColor = Color.Red; 5614control.ForeColor = Color.Empty; 5626control.ForeColor = Color.Red; 5642control.ForeColor = Color.Red; 5658control.ForeColor = Color.Red; 10959ForeColor = Color.Yellow,
System\Windows\Forms\GroupBoxTests.cs (2)
1859ForeColor = foreColor, 1897ForeColor = foreColor,
System\Windows\Forms\ProgressBarTests.cs (11)
539ForeColor = value 545control.ForeColor = value; 570control.ForeColor = value; 578control.ForeColor = value; 600control.ForeColor = Color.Red; 605control.ForeColor = Color.Red; 610control.ForeColor = Color.Empty; 616control.ForeColor = Color.Red; 628control.ForeColor = Color.Red; 644control.ForeColor = Color.Red; 2566control.ForeColor = Color.Black;
System\Windows\Forms\ToolStripControlHostTests.cs (2)
32ForeColor = Color.Blue, 629c.ForeColor = Color.Red;
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
229adapter.ForeColor = wfColor;
198 references to ForeColor
System.Windows.Forms (60)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
155get => GetOleColorFromColor(GetControl()?.ForeColor ?? default);
System\Windows\Forms\ActiveX\AxHost.cs (3)
348get => base.ForeColor; 2112return GetOleColorFromColor(richParent.ForeColor); 3328qaContainer.colorFore = GetOleColorFromColor(parent.ForeColor);
System\Windows\Forms\Control.cs (8)
2009return parent.ForeColor; 2030Color previous = ForeColor; 2032if (!previous.Equals(ForeColor)) 2965oldForeColor = ForeColor; 2981if (checkForeColor && !oldForeColor.Equals(ForeColor)) 4156Color oldForeColor = ForeColor; 4191if (!oldForeColor.Equals(ForeColor)) 5743PInvokeCore.SetTextColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(ForeColor));
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
370ControlPaint.DrawFocusRectangle(g, r, Control.ForeColor, Control.BackColor); 641new(deviceContext, Control.ForeColor, Control.BackColor)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
538get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.WindowText;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
1990defaultCellStyleTmp.ForeColor = SystemInformation.HighContrast ? DefaultForeBrush.Color : base.ForeColor; 2054ForeColor = SystemInformation.HighContrast ? DefaultForeBrush.Color : base.ForeColor, 2601get => base.ForeColor;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
15110if (_dataGridViewState1[State1_AmbientForeColor] && DefaultCellStyle.ForeColor != base.ForeColor) 15112DefaultCellStyle.ForeColor = base.ForeColor;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
494? base.ForeColor
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (4)
430Color textColor = Enabled ? ForeColor : TextRenderer.DisabledTextColor(BackColor); 473using var textBrush = ForeColor.GetCachedSolidBrushScope(); 519hdc.HDC.DrawText(Text, hfont, textRectangle, ForeColor, (TextFormatFlags)flags); 547Color boxColor = Enabled ? ForeColor : SystemColors.GrayText;
System\Windows\Forms\Controls\Labels\Label.cs (1)
1264color = hdc.FindNearestColor(Enabled ? ForeColor : DisabledColor);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
1010using var foreBrush = ForeColor.GetCachedSolidBrushScope(); 1326ControlPaint.DrawFocusRectangle(g, Rectangle.Ceiling(focusRectangle), ForeColor, BackColor); 1332ControlPaint.DrawFocusRectangle(g, Rectangle.Ceiling(rect), ForeColor, BackColor);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
452return base.ForeColor;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
833get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.WindowText;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
418return base.ForeColor;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
266get => base.ForeColor;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (4)
354PInvokeCore.SendMessage(this, PInvoke.PBM_SETBARCOLOR, 0, ForeColor.ToWin32()); 605PInvokeCore.SendMessage(this, PInvoke.PBM_SETBARCOLOR, (WPARAM)0, (LPARAM)ForeColor); 666return ForeColor != s_defaultForeColor; 699PInvokeCore.SendMessage(this, PInvoke.PBM_SETBARCOLOR, 0, ForeColor.ToWin32());
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
442get => _commandsPane.ForeColor; 576get => base.ForeColor; 642get => _helpPane.ForeColor;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
107ControlPaint.DrawFocusRectangle(pevent.Graphics, dropDownButtonRect, ForeColor, BackColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
283ForeColor = ForeColor 360if (ForeColor.ToArgb() == SystemColors.WindowText.ToArgb()) 366int colorRGB = ForeColor.ToArgb(); 1963public Color TextColor => ForeColor; 4377EditTextBox.ForeColor = drawReadOnly ? GrayTextColor : ForeColor;
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
112get => base.ForeColor;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
251get => base.ForeColor;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
502return base.ForeColor;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
761get => base.ForeColor;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
243get => base.ForeColor;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
215get => ControlInternal.ForeColor;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
872return parent.ForeColor;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
442get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.WindowText;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1263get => base.ForeColor;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1464ControlPaint.DrawFocusRectangle(g, r, ForeColor, BackColor);
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
300internal override bool ShouldSerializeForeColor() => !ForeColor.Equals(Color.White); 687using (var brush = ForeColor.GetCachedSolidBrushScope())
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
541get => base.ForeColor;
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
155get => base.ForeColor;
System.Windows.Forms.Design (7)
System\ComponentModel\Design\ByteViewer.cs (3)
130using SolidBrush foreground = new(ForeColor); 195using Brush foreground = new SolidBrush(ForeColor); 223using Brush foreground = new SolidBrush(ForeColor);
System\Windows\Forms\Design\ComponentTray.cs (2)
1429ctl.ForeColor = ForeColor; 2280Brush foreBrush = new SolidBrush(ForeColor);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2294e.Graphics.DrawString(exceptionText, errorFont, new SolidBrush(Control.ForeColor), textRect, stringFormat);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1863TextRenderer.DrawText(e.Graphics, Text, Font, rect, ForeColor, formatFlags);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
80Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System.Windows.Forms.Tests (129)
System\Windows\Forms\ButtonBaseTests.cs (1)
70Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\ButtonTests.cs (1)
73Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\CheckBoxTests.cs (1)
74Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\ContainerControlTests.cs (1)
81Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\ControlTests.ControlCollection.cs (12)
573Assert.Equal(Control.DefaultForeColor, control.ForeColor); 617Assert.Equal(Control.DefaultForeColor, control.ForeColor); 653Assert.Equal(Control.DefaultForeColor, control.ForeColor); 762Assert.Equal(Color.Red, control.ForeColor); 803Assert.Equal(Control.DefaultForeColor, control.ForeColor); 921Assert.Equal(Color.Red, control.ForeColor); 2270Assert.Equal(Control.DefaultForeColor, control.ForeColor); 2317Assert.Equal(Control.DefaultForeColor, control.ForeColor); 2356Assert.Equal(Color.Red, control.ForeColor); 2461Assert.Equal(Control.DefaultForeColor, control.ForeColor); 2500Assert.Equal(Color.Red, control.ForeColor); 2594Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\ControlTests.cs (5)
62Assert.Equal(Control.DefaultForeColor, control.ForeColor); 151Assert.Equal(Control.DefaultForeColor, control.ForeColor); 247Assert.Equal(Control.DefaultForeColor, control.ForeColor); 343Assert.Equal(Control.DefaultForeColor, control.ForeColor); 439Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\ControlTests.Methods.cs (3)
6461Assert.Equal(Control.DefaultForeColor, control.ForeColor); 6466Assert.Equal(Control.DefaultForeColor, control.ForeColor); 6470Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\ControlTests.Properties.cs (62)
5297Assert.Equal(expected, control.ForeColor); 5302Assert.Equal(expected, control.ForeColor); 5316Assert.Equal(expected, control.ForeColor); 5321Assert.Equal(expected, control.ForeColor); 5336Assert.Equal(expected, control.ForeColor); 5337Assert.Equal(expected, child1.ForeColor); 5338Assert.Equal(expected, child2.ForeColor); 5343Assert.Equal(expected, control.ForeColor); 5344Assert.Equal(expected, child1.ForeColor); 5345Assert.Equal(expected, child2.ForeColor); 5366Assert.Equal(expected, control.ForeColor); 5367Assert.Equal(Color.Yellow, child1.ForeColor); 5368Assert.Equal(Color.YellowGreen, child2.ForeColor); 5373Assert.Equal(expected, control.ForeColor); 5374Assert.Equal(Color.Yellow, child1.ForeColor); 5375Assert.Equal(Color.YellowGreen, child2.ForeColor); 5400Assert.Equal(expected, control.ForeColor); 5408Assert.Equal(expected, control.ForeColor); 5430Assert.Equal(Color.Red, control.ForeColor); 5435Assert.Equal(Color.Red, control.ForeColor); 5440Assert.Equal(Control.DefaultForeColor, control.ForeColor); 5446Assert.Equal(Color.Red, control.ForeColor); 5465Assert.Equal(Color.Red, control.ForeColor); 5517Assert.Equal(Color.Red, control.ForeColor); 5518Assert.Equal(Color.Red, child1.ForeColor); 5519Assert.Equal(Color.Red, child2.ForeColor); 5526Assert.Equal(Color.Red, control.ForeColor); 5527Assert.Equal(Color.Red, child1.ForeColor); 5528Assert.Equal(Color.Red, child2.ForeColor); 5535Assert.Equal(Control.DefaultForeColor, control.ForeColor); 5536Assert.Equal(Control.DefaultForeColor, child1.ForeColor); 5537Assert.Equal(Control.DefaultForeColor, child2.ForeColor); 5547Assert.Equal(Color.Red, control.ForeColor); 5548Assert.Equal(Color.Red, child1.ForeColor); 5549Assert.Equal(Color.Red, child2.ForeColor); 5597Assert.Equal(Color.Red, control.ForeColor); 5598Assert.Equal(Color.Yellow, child1.ForeColor); 5599Assert.Equal(Color.YellowGreen, child2.ForeColor); 5606Assert.Equal(Color.Red, control.ForeColor); 5607Assert.Equal(Color.Yellow, child1.ForeColor); 5608Assert.Equal(Color.YellowGreen, child2.ForeColor); 5615Assert.Equal(Control.DefaultForeColor, control.ForeColor); 5616Assert.Equal(Color.Yellow, child1.ForeColor); 5617Assert.Equal(Color.YellowGreen, child2.ForeColor); 5627Assert.Equal(Color.Red, control.ForeColor); 5628Assert.Equal(Color.Yellow, child1.ForeColor); 5629Assert.Equal(Color.YellowGreen, child2.ForeColor); 5638PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.ForeColor)]; 5643Assert.Equal(Color.Red, control.ForeColor); 5647Assert.Equal(Control.DefaultForeColor, control.ForeColor); 5654PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.ForeColor)]; 5659Assert.Equal(Color.Red, control.ForeColor); 5663Assert.Equal(Control.DefaultForeColor, control.ForeColor); 10813Assert.Equal(Color.Red, control.ForeColor); 10829Assert.Equal(Color.Red, control.ForeColor); 10845Assert.Equal(Color.Red, control.ForeColor); 10861Assert.Equal(Color.Blue, control.ForeColor); 10877Assert.Equal(Control.DefaultForeColor, control.ForeColor); 10995Assert.Equal(Color.Yellow, control.ForeColor); 11011Assert.Equal(Color.Yellow, control.ForeColor); 11027Assert.Equal(Color.Yellow, control.ForeColor); 11043Assert.Equal(Color.Yellow, control.ForeColor);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
94Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
78Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
75Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\FormTests.cs (1)
96Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\GroupBoxTests.cs (1)
66Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\LabelTests.cs (1)
66Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\ListControlTests.cs (1)
69Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\MdiClientTests.cs (1)
51Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\PanelTests.cs (1)
75Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\ProgressBarTests.cs (18)
63Assert.Equal(SystemColors.Highlight, control.ForeColor); 541Assert.Equal(expected, control.ForeColor); 546Assert.Equal(expected, control.ForeColor); 571Assert.Equal(expected, control.ForeColor); 579Assert.Equal(expected, control.ForeColor); 601Assert.Equal(Color.Red, control.ForeColor); 606Assert.Equal(Color.Red, control.ForeColor); 611Assert.Equal(ProgressBar.DefaultForeColor, control.ForeColor); 617Assert.Equal(Color.Red, control.ForeColor); 624PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.ForeColor)]; 629Assert.Equal(Color.Red, control.ForeColor); 633Assert.Equal(SystemColors.Highlight, control.ForeColor); 640PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.ForeColor)]; 645Assert.Equal(Color.Red, control.ForeColor); 649Assert.Equal(SystemColors.Highlight, control.ForeColor); 2563Assert.Equal(SystemColors.Highlight, control.ForeColor); 2568Assert.Equal(SystemColors.Highlight, control.ForeColor); 2572Assert.Equal(SystemColors.Highlight, control.ForeColor);
System\Windows\Forms\RadioButtonTests.cs (1)
73Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\ScrollableControlTests.cs (1)
74Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\SplitterPanelTests.cs (1)
67Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
80Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\TabPageTests.cs (2)
80Assert.Equal(Control.DefaultForeColor, control.ForeColor); 189Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
77Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\ToolStripControlHostTests.cs (7)
86Assert.Equal(c.ForeColor, item.ForeColor); 630Assert.Equal(Color.Red, c.ForeColor); 1091Assert.Equal(expected, c.ForeColor); 1097Assert.Equal(expected, c.ForeColor); 4427Assert.Equal(Control.DefaultForeColor, c.ForeColor); 4433Assert.Equal(Control.DefaultForeColor, c.ForeColor); 4438Assert.Equal(Control.DefaultForeColor, c.ForeColor);
System\Windows\Forms\ToolStripPanelTests.cs (1)
77Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System\Windows\Forms\UserControlTests.cs (1)
81Assert.Equal(Control.DefaultForeColor, control.ForeColor);
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
951OnPropertyChanged("ForeColor", this.ForeColor);