Base:
property
ForeColor
System.Windows.Forms.Control.ForeColor
11 writes to ForeColor
System.Windows.Forms.Tests (10)
System\Windows\Forms\PropertyGridTests.cs (10)
1617ForeColor = value 1623control.ForeColor = value; 1648control.ForeColor = value; 1656control.ForeColor = value; 1679control.ForeColor = Color.Red; 1684control.ForeColor = Color.Red; 1689control.ForeColor = Color.Empty; 1695control.ForeColor = Color.Red; 1707control.ForeColor = Color.Red; 1723control.ForeColor = Color.Red;
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
163_propertyGrid.ForeColor = Color.Red;
17 references to ForeColor
System.Windows.Forms.Tests (15)
System\Windows\Forms\PropertyGridTests.cs (15)
104Assert.Equal(Control.DefaultForeColor, control.ForeColor); 1619Assert.Equal(expected, control.ForeColor); 1624Assert.Equal(expected, control.ForeColor); 1649Assert.Equal(expected, control.ForeColor); 1657Assert.Equal(expected, control.ForeColor); 1680Assert.Equal(Color.Red, control.ForeColor); 1685Assert.Equal(Color.Red, control.ForeColor); 1690Assert.Equal(Control.DefaultForeColor, control.ForeColor); 1696Assert.Equal(Color.Red, control.ForeColor); 1703PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ForeColor)]; 1708Assert.Equal(Color.Red, control.ForeColor); 1712Assert.Equal(Control.DefaultForeColor, control.ForeColor); 1719PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ForeColor)]; 1724Assert.Equal(Color.Red, control.ForeColor); 1728Assert.Equal(Control.DefaultForeColor, control.ForeColor);
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
161_propertyGrid.ForeColor.Should().Be(SystemColors.ControlText); 164_propertyGrid.ForeColor.Should().Be(Color.Red);