Base:
property
BackColor
System.Windows.Forms.Control.BackColor
27 writes to BackColor
DesignSurface (7)
CustomControls\CustomButtonDesignerActionList.cs (1)
80_control.BackColor = backColor != Color.Yellow ? Color.Yellow : Color.Blue;
MainForm.cs (6)
133b1.BackColor = Color.LightGray; 134b2.BackColor = Color.LightGreen; 194b1.BackColor = Color.Coral; 226b3.BackColor = Color.LightGray; 244b1.BackColor = Color.Gold; 245b2.BackColor = Color.LightGreen;
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
208_dropDownButton.BackColor = SystemColors.Control; 244BackColor = SystemColors.Control,
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
20BackColor = Color.Transparent,
System.Windows.Forms.Tests (17)
System\Windows\Forms\AbstractButtonBaseTests.cs (1)
38control.BackColor = expectedColor;
System\Windows\Forms\ButtonBaseTests.cs (16)
507BackColor = value 513control.BackColor = value; 525BackColor = value 532control.BackColor = value; 571BackColor = value 578control.BackColor = value; 617BackColor = value 624control.BackColor = value; 680control.BackColor = value; 686control.BackColor = value; 711control.BackColor = value; 719control.BackColor = value; 741control.BackColor = Color.Red; 746control.BackColor = Color.Red; 751control.BackColor = Color.Empty; 757control.BackColor = Color.Red;
44 references to BackColor
DesignSurface (2)
CustomControls\CustomButtonDesignerActionList.cs (2)
53PropertyDescriptor dockProp = TypeDescriptor.GetProperties(Component)[nameof(CustomButton.BackColor)]; 79Color backColor = _control.BackColor;
System.Windows.Forms (21)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1265get => (_isEnableVisualStyleBackgroundSet || (RawBackColor.IsEmpty && (BackColor == SystemColors.Control)))
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (4)
105if (Control.BackColor != SystemColors.Control && SystemInformation.HighContrast) 113ControlPaint.DrawBorderSimple(deviceContext, bounds, ControlPaint.Dark(Control.BackColor)); 370ControlPaint.DrawFocusRectangle(g, r, Control.ForeColor, Control.BackColor); 641new(deviceContext, Control.ForeColor, Control.BackColor)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (2)
40Color backColor = Control.BackColor; 133Color backColor = Control.BackColor;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (2)
27Control.PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : Control.BackColor, r.Location); 73Control.PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : Control.BackColor, r.Location);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
73Color color = isHighContrastHighlighted ? SystemColors.Highlight : Control.BackColor;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
107ControlPaint.DrawFocusRectangle(pevent.Graphics, dropDownButtonRect, ForeColor, BackColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (10)
18if (Control.BackColor != SystemColors.Control && SystemInformation.HighContrast) 22Color c = ControlPaint.LightLight(Control.BackColor); 32ControlPaint.DrawBorderSimple(e, r, ControlPaint.Dark(Control.BackColor)); 39Color c = ControlPaint.Light(Control.BackColor); 44Control.BackColor, 2, ButtonBorderStyle.Outset, 45Control.BackColor, 2, ButtonBorderStyle.Outset); 51c = ControlPaint.LightLight(Control.BackColor); 61ControlPaint.DrawBorderSimple(e, r, ControlPaint.Dark(Control.BackColor)); 90Color backgroundColor = isHighContrastHighlighted ? SystemColors.Highlight : Control.BackColor; 93using Image invertedImage = ControlPaint.CreateBitmapWithInvertedForeColor(bitmap, Control.BackColor);
System.Windows.Forms.Tests (21)
System\Windows\Forms\AbstractButtonBaseTests.cs (1)
43control.BackColor.Should().Be(expectedColor);
System\Windows\Forms\ButtonBaseTests.cs (17)
29Assert.Equal(Control.DefaultBackColor, control.BackColor); 509Assert.Equal(expected, control.BackColor); 514Assert.Equal(expected, control.BackColor); 527Assert.Equal(expected, control.BackColor); 533Assert.Equal(expected, control.BackColor); 573Assert.Equal(expected, control.BackColor); 579Assert.Equal(expected, control.BackColor); 619Assert.Equal(expected, control.BackColor); 625Assert.Equal(expected, control.BackColor); 681Assert.Equal(expected, control.BackColor); 687Assert.Equal(expected, control.BackColor); 712Assert.Equal(expected, control.BackColor); 720Assert.Equal(expected, control.BackColor); 742Assert.Equal(Color.Red, control.BackColor); 747Assert.Equal(Color.Red, control.BackColor); 752Assert.Equal(Control.DefaultBackColor, control.BackColor); 758Assert.Equal(Color.Red, control.BackColor);
System\Windows\Forms\ButtonTests.cs (1)
31Assert.Equal(Control.DefaultBackColor, control.BackColor);
System\Windows\Forms\CheckBoxTests.cs (1)
30Assert.Equal(Control.DefaultBackColor, control.BackColor);
System\Windows\Forms\RadioButtonTests.cs (1)
30Assert.Equal(Control.DefaultBackColor, control.BackColor);