Base:
property
BackColor
System.Windows.Forms.Control.BackColor
12 writes to BackColor
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (2)
79
BackColor
= opaqueBackColor;
84
BackColor
= dataGridViewCellStyle.BackColor;
System.Windows.Forms.Tests (10)
System\Windows\Forms\ComboBoxTests.cs (10)
175
BackColor
= value
181
control.
BackColor
= value;
205
control.
BackColor
= value;
213
control.
BackColor
= value;
255
control.
BackColor
= Color.Red;
260
control.
BackColor
= Color.Red;
265
control.
BackColor
= Color.Empty;
271
control.
BackColor
= Color.Red;
283
control.
BackColor
= Color.Red;
299
control.
BackColor
= Color.Red;
19 references to BackColor
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
2005
PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(
BackColor
));
3594
BackColor
);
3734
&& !(SystemInformation.HighContrast &&
BackColor
== SystemColors.Window))
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
203
=> comboBox.Enabled ? comboBox.
BackColor
: SystemColors.Control;
System.Windows.Forms.Tests (15)
System\Windows\Forms\ComboBoxTests.cs (15)
34
Assert.Equal(SystemColors.Window, control.
BackColor
);
177
Assert.Equal(expected, control.
BackColor
);
182
Assert.Equal(expected, control.
BackColor
);
206
Assert.Equal(expected, control.
BackColor
);
214
Assert.Equal(expected, control.
BackColor
);
256
Assert.Equal(Color.Red, control.
BackColor
);
261
Assert.Equal(Color.Red, control.
BackColor
);
266
Assert.Equal(SystemColors.Window, control.
BackColor
);
272
Assert.Equal(Color.Red, control.
BackColor
);
279
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ComboBox))[nameof(ComboBox.
BackColor
)];
284
Assert.Equal(Color.Red, control.
BackColor
);
288
Assert.Equal(SystemColors.Window, control.
BackColor
);
295
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ComboBox))[nameof(ComboBox.
BackColor
)];
300
Assert.Equal(Color.Red, control.
BackColor
);
304
Assert.Equal(SystemColors.Window, control.
BackColor
);