2 overrides of ShouldSerializeForeColor
System.Windows.Forms (2)
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
664
internal override bool
ShouldSerializeForeColor
()
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
300
internal override bool
ShouldSerializeForeColor
() => !ForeColor.Equals(Color.White);
10 references to ShouldSerializeForeColor
System.Windows.Forms (10)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
538
get =>
ShouldSerializeForeColor
() ? base.ForeColor : SystemColors.WindowText;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
492
get =>
ShouldSerializeForeColor
()
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
428
if (
ShouldSerializeForeColor
() || Application.IsDarkModeEnabled || !Enabled)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
450
if (
ShouldSerializeForeColor
())
System\Windows\Forms\Controls\ListView\ListView.cs (1)
833
get =>
ShouldSerializeForeColor
() ? base.ForeColor : SystemColors.WindowText;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
416
if (
ShouldSerializeForeColor
() || Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
500
if (
ShouldSerializeForeColor
())
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
865
=> _control is not null ? _control.
ShouldSerializeForeColor
() : base.ShouldSerializeForeColor();
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1205
return parent.
ShouldSerializeForeColor
();
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
442
get =>
ShouldSerializeForeColor
() ? base.ForeColor : SystemColors.WindowText;