Base:
property
ForeColor
System.Windows.Forms.Control.ForeColor
11 writes to ForeColor
System.Windows.Forms.Tests (11)
System\Windows\Forms\ListBoxTests.cs (11)
1253
ForeColor
= value
1259
control.
ForeColor
= value;
1286
control.
ForeColor
= value;
1294
control.
ForeColor
= value;
1316
control.
ForeColor
= Color.Red;
1321
control.
ForeColor
= Color.Red;
1326
control.
ForeColor
= Color.Empty;
1332
control.
ForeColor
= Color.Red;
1344
control.
ForeColor
= Color.Red;
1360
control.
ForeColor
= Color.Red;
6000
control.
ForeColor
= Color.Black;
21 references to ForeColor
System.Windows.Forms (3)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (2)
582
Color foreColor = (SelectionMode != SelectionMode.None) ? e.ForeColor :
ForeColor
;
728
Color foreColor = (SelectionMode != SelectionMode.None) ? e.ForeColor :
ForeColor
;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2366
ForeColor
,
System.Windows.Forms.Tests (18)
System\Windows\Forms\ListBoxTests.cs (18)
73
Assert.Equal(SystemColors.WindowText, control.
ForeColor
);
1255
Assert.Equal(expected, control.
ForeColor
);
1260
Assert.Equal(expected, control.
ForeColor
);
1287
Assert.Equal(expected, control.
ForeColor
);
1295
Assert.Equal(expected, control.
ForeColor
);
1317
Assert.Equal(Color.Red, control.
ForeColor
);
1322
Assert.Equal(Color.Red, control.
ForeColor
);
1327
Assert.Equal(SystemColors.WindowText, control.
ForeColor
);
1333
Assert.Equal(Color.Red, control.
ForeColor
);
1340
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.
ForeColor
)];
1345
Assert.Equal(Color.Red, control.
ForeColor
);
1349
Assert.Equal(SystemColors.WindowText, control.
ForeColor
);
1356
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ListBox))[nameof(ListBox.
ForeColor
)];
1361
Assert.Equal(Color.Red, control.
ForeColor
);
1365
Assert.Equal(SystemColors.WindowText, control.
ForeColor
);
5997
Assert.Equal(SystemColors.WindowText, control.
ForeColor
);
6002
Assert.Equal(SystemColors.WindowText, control.
ForeColor
);
6006
Assert.Equal(SystemColors.WindowText, control.
ForeColor
);