2 overrides of ShouldSerializeBackColor
System.Windows.Forms (2)
System\Windows\Forms\MDI\MDIClient.cs (1)
318
internal override bool
ShouldSerializeBackColor
() => BackColor != SystemColors.AppWorkspace;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
295
internal override bool
ShouldSerializeBackColor
() => !BackColor.Equals(SystemColors.AppWorkspace);
11 references to ShouldSerializeBackColor
System.Windows.Forms (11)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
258
get =>
ShouldSerializeBackColor
() ? base.BackColor : SystemColors.Window;
1991
if (msg == PInvokeCore.WM_CTLCOLORSTATIC && !
ShouldSerializeBackColor
())
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
130
get =>
ShouldSerializeBackColor
() ? base.BackColor : SystemColors.Window;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
157
if (
ShouldSerializeBackColor
())
System\Windows\Forms\Controls\ListView\ListView.cs (1)
348
get =>
ShouldSerializeBackColor
() ? base.BackColor : SystemColors.Window;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
200
if (
ShouldSerializeBackColor
() || Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
286
if (
ShouldSerializeBackColor
())
1986
if (msg == PInvokeCore.WM_CTLCOLORSTATIC && !
ShouldSerializeBackColor
())
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
862
=> _control is not null ? _control.
ShouldSerializeBackColor
() : base.ShouldSerializeBackColor();
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
198
get =>
ShouldSerializeBackColor
() ? base.BackColor : SystemColors.Window;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
578
if (!Enabled && BorderStyle != BorderStyle.None && !_upDownEdit.
ShouldSerializeBackColor
())