Base:
property
BackColor
System.Windows.Forms.Control.BackColor
11 writes to BackColor
System.Windows.Forms.Tests (10)
System\Windows\Forms\PropertyGridTests.cs (10)
290
BackColor
= value
297
control.
BackColor
= value;
322
control.
BackColor
= value;
331
control.
BackColor
= value;
356
control.
BackColor
= Color.Red;
361
control.
BackColor
= Color.Red;
366
control.
BackColor
= Color.Empty;
372
control.
BackColor
= Color.Red;
384
control.
BackColor
= Color.Red;
400
control.
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)
42
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
292
Assert.Equal(expected, control.
BackColor
);
298
Assert.Equal(expected, control.
BackColor
);
323
Assert.Equal(expected, control.
BackColor
);
332
Assert.Equal(expected, control.
BackColor
);
357
Assert.Equal(Color.Red, control.
BackColor
);
362
Assert.Equal(Color.Red, control.
BackColor
);
367
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
373
Assert.Equal(Color.Red, control.
BackColor
);
380
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
BackColor
)];
385
Assert.Equal(Color.Red, control.
BackColor
);
389
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
396
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
BackColor
)];
401
Assert.Equal(Color.Red, control.
BackColor
);
405
Assert.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);