8 writes to CommandsForeColor
System.Windows.Forms.Tests (7)
System\Windows\Forms\PropertyGridTests.cs (7)
1198
CommandsForeColor
= value
1204
control.
CommandsForeColor
= value;
1222
control.
CommandsForeColor
= value;
1230
control.
CommandsForeColor
= value;
1245
control.
CommandsForeColor
= Color.Red;
1261
control.
CommandsForeColor
= Color.Red;
1547
CommandsForeColor
= Color.FromArgb(255, 0, 0, 2),
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
219
_propertyGrid.
CommandsForeColor
= Color.Red;
15 references to CommandsForeColor
System.Windows.Forms.Tests (13)
System\Windows\Forms\PropertyGridTests.cs (13)
65
Assert.Equal(SystemColors.ControlText, control.
CommandsForeColor
);
1200
Assert.Equal(expected, control.
CommandsForeColor
);
1205
Assert.Equal(expected, control.
CommandsForeColor
);
1223
Assert.Equal(expected, control.
CommandsForeColor
);
1231
Assert.Equal(expected, control.
CommandsForeColor
);
1241
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
CommandsForeColor
)];
1246
Assert.Equal(Color.Red, control.
CommandsForeColor
);
1250
Assert.Equal(SystemColors.ControlText, control.
CommandsForeColor
);
1257
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
CommandsForeColor
)];
1262
Assert.Equal(Color.Red, control.
CommandsForeColor
);
1266
Assert.Equal(SystemColors.ControlText, control.
CommandsForeColor
);
1557
Assert.Equal(Color.FromArgb(255, 0, 0, 2), control.
CommandsForeColor
);
1567
Assert.Equal(Color.FromArgb(255, 0, 0, 2), control.
CommandsForeColor
);
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
217
_propertyGrid.
CommandsForeColor
.Should().Be(SystemColors.ControlText);
220
_propertyGrid.
CommandsForeColor
.Should().Be(Color.Red);