Base:
property
BackColor
System.Windows.Forms.Control.BackColor
11 writes to BackColor
System.Windows.Forms.Tests (10)
System\Windows\Forms\PropertyGridTests.cs (10)
288BackColor = value 295control.BackColor = value; 320control.BackColor = value; 329control.BackColor = value; 354control.BackColor = Color.Red; 359control.BackColor = Color.Red; 364control.BackColor = Color.Empty; 370control.BackColor = Color.Red; 382control.BackColor = Color.Red; 398control.BackColor = Color.Red;
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
191_propertyGrid.BackColor = Color.Blue;
17 references to BackColor
System.Windows.Forms.Tests (15)
System\Windows\Forms\PropertyGridTests.cs (15)
40Assert.Equal(Control.DefaultBackColor, control.BackColor); 290Assert.Equal(expected, control.BackColor); 296Assert.Equal(expected, control.BackColor); 321Assert.Equal(expected, control.BackColor); 330Assert.Equal(expected, control.BackColor); 355Assert.Equal(Color.Red, control.BackColor); 360Assert.Equal(Color.Red, control.BackColor); 365Assert.Equal(Control.DefaultBackColor, control.BackColor); 371Assert.Equal(Color.Red, control.BackColor); 378PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.BackColor)]; 383Assert.Equal(Color.Red, control.BackColor); 387Assert.Equal(Control.DefaultBackColor, control.BackColor); 394PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.BackColor)]; 399Assert.Equal(Color.Red, control.BackColor); 403Assert.Equal(Control.DefaultBackColor, control.BackColor);
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
189_propertyGrid.BackColor.Should().Be(SystemColors.Control); 192_propertyGrid.BackColor.Should().Be(Color.Blue);