2 overrides of ShouldSerializeForeColor
System.Windows.Forms (2)
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
671
internal override bool
ShouldSerializeForeColor
()
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
321
internal override bool
ShouldSerializeForeColor
() => _isForeColorSet;
16 references to ShouldSerializeForeColor
System.Windows.Forms (16)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxModernAdapter.cs (1)
127
Color preferredTextColor = Control.
ShouldSerializeForeColor
() || Control.ForeColor != Forms.Control.DefaultForeColor
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeAdapter.cs (1)
58
? Control.
ShouldSerializeForeColor
() || Control.ForeColor != Forms.Control.DefaultForeColor
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonModernAdapter.cs (1)
127
Color preferredTextColor = Control.
ShouldSerializeForeColor
() || Control.ForeColor != Forms.Control.DefaultForeColor
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
601
get =>
ShouldSerializeForeColor
() ? base.ForeColor : SystemColors.WindowText;
System\Windows\Forms\Controls\ComboBox\ComboBox.ModernComboAdapter.cs (1)
312
? comboBox.
ShouldSerializeForeColor
()
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
491
get =>
ShouldSerializeForeColor
()
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
457
if (
ShouldSerializeForeColor
() || Application.IsDarkModeEnabled || !Enabled)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
448
if (
ShouldSerializeForeColor
())
System\Windows\Forms\Controls\ListView\ListView.cs (1)
835
get =>
ShouldSerializeForeColor
() ? base.ForeColor : SystemColors.WindowText;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
412
if (
ShouldSerializeForeColor
() || Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
4086
private bool ShouldSerializeCommandsForeColor() => _commandsPane.
ShouldSerializeForeColor
();
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
534
get =>
ShouldSerializeForeColor
()
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
879
=> _control is not null ? _control.
ShouldSerializeForeColor
() : base.ShouldSerializeForeColor();
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1210
return parent.
ShouldSerializeForeColor
();
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
440
get =>
ShouldSerializeForeColor
() ? base.ForeColor : SystemColors.WindowText;
System\Windows\Forms\Rendering\Button\AnimatedPopupButtonRenderer.cs (1)
143
&& !button.
ShouldSerializeForeColor
();