Base:
property
ForeColor
System.Windows.Forms.Control.ForeColor
11 writes to ForeColor
System.Windows.Forms.Tests (10)
System\Windows\Forms\PropertyGridTests.cs (10)
1619
ForeColor
= value
1625
control.
ForeColor
= value;
1650
control.
ForeColor
= value;
1658
control.
ForeColor
= value;
1681
control.
ForeColor
= Color.Red;
1686
control.
ForeColor
= Color.Red;
1691
control.
ForeColor
= Color.Empty;
1697
control.
ForeColor
= Color.Red;
1709
control.
ForeColor
= Color.Red;
1725
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)
106
Assert.Equal(Control.DefaultForeColor, control.
ForeColor
);
1621
Assert.Equal(expected, control.
ForeColor
);
1626
Assert.Equal(expected, control.
ForeColor
);
1651
Assert.Equal(expected, control.
ForeColor
);
1659
Assert.Equal(expected, control.
ForeColor
);
1682
Assert.Equal(Color.Red, control.
ForeColor
);
1687
Assert.Equal(Color.Red, control.
ForeColor
);
1692
Assert.Equal(Control.DefaultForeColor, control.
ForeColor
);
1698
Assert.Equal(Color.Red, control.
ForeColor
);
1705
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
ForeColor
)];
1710
Assert.Equal(Color.Red, control.
ForeColor
);
1714
Assert.Equal(Control.DefaultForeColor, control.
ForeColor
);
1721
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
ForeColor
)];
1726
Assert.Equal(Color.Red, control.
ForeColor
);
1730
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);