Base:
property
ForeColor
System.Windows.Forms.Control.ForeColor
11 writes to ForeColor
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
86
ForeColor
= dataGridViewCellStyle.ForeColor;
System.Windows.Forms.Tests (10)
System\Windows\Forms\ComboBoxTests.cs (10)
1060
ForeColor
= value
1066
control.
ForeColor
= value;
1093
control.
ForeColor
= value;
1101
control.
ForeColor
= value;
1123
control.
ForeColor
= Color.Red;
1128
control.
ForeColor
= Color.Red;
1133
control.
ForeColor
= Color.Empty;
1139
control.
ForeColor
= Color.Red;
1151
control.
ForeColor
= Color.Red;
1167
control.
ForeColor
= Color.Red;
17 references to ForeColor
System.Windows.Forms (2)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
2004
PInvokeCore.SetTextColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(
ForeColor
));
3593
ForeColor
,
System.Windows.Forms.Tests (15)
System\Windows\Forms\ComboBoxTests.cs (15)
81
Assert.Equal(SystemColors.WindowText, control.
ForeColor
);
1062
Assert.Equal(expected, control.
ForeColor
);
1067
Assert.Equal(expected, control.
ForeColor
);
1094
Assert.Equal(expected, control.
ForeColor
);
1102
Assert.Equal(expected, control.
ForeColor
);
1124
Assert.Equal(Color.Red, control.
ForeColor
);
1129
Assert.Equal(Color.Red, control.
ForeColor
);
1134
Assert.Equal(SystemColors.WindowText, control.
ForeColor
);
1140
Assert.Equal(Color.Red, control.
ForeColor
);
1147
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ComboBox))[nameof(ComboBox.
ForeColor
)];
1152
Assert.Equal(Color.Red, control.
ForeColor
);
1156
Assert.Equal(SystemColors.WindowText, control.
ForeColor
);
1163
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ComboBox))[nameof(ComboBox.
ForeColor
)];
1168
Assert.Equal(Color.Red, control.
ForeColor
);
1172
Assert.Equal(SystemColors.WindowText, control.
ForeColor
);