Base:
property
ForeColor
System.Windows.Forms.Control.ForeColor
11 writes to ForeColor
System.Windows.Forms.Tests (10)
System\Windows\Forms\PropertyGridTests.cs (10)
1617
ForeColor
= value
1623
control.
ForeColor
= value;
1648
control.
ForeColor
= value;
1656
control.
ForeColor
= value;
1679
control.
ForeColor
= Color.Red;
1684
control.
ForeColor
= Color.Red;
1689
control.
ForeColor
= Color.Empty;
1695
control.
ForeColor
= Color.Red;
1707
control.
ForeColor
= Color.Red;
1723
control.
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)
104
Assert.Equal(Control.DefaultForeColor, control.
ForeColor
);
1619
Assert.Equal(expected, control.
ForeColor
);
1624
Assert.Equal(expected, control.
ForeColor
);
1649
Assert.Equal(expected, control.
ForeColor
);
1657
Assert.Equal(expected, control.
ForeColor
);
1680
Assert.Equal(Color.Red, control.
ForeColor
);
1685
Assert.Equal(Color.Red, control.
ForeColor
);
1690
Assert.Equal(Control.DefaultForeColor, control.
ForeColor
);
1696
Assert.Equal(Color.Red, control.
ForeColor
);
1703
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
ForeColor
)];
1708
Assert.Equal(Color.Red, control.
ForeColor
);
1712
Assert.Equal(Control.DefaultForeColor, control.
ForeColor
);
1719
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
ForeColor
)];
1724
Assert.Equal(Color.Red, control.
ForeColor
);
1728
Assert.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);