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