15 writes to ForeColor
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (4)
109ForeColor = foreColor; 200ForeColor = foreColor; 934newItem.ForeColor = ForeColor; 1226ForeColor = (Color)info.GetValue(nameof(ForeColor), typeof(Color))!;
System.Windows.Forms.Tests (11)
SerializableTypesTests.cs (1)
165ForeColor = Color.White,
System\Windows\Forms\ListViewItemTests.cs (4)
934ForeColor = value 940item.ForeColor = value; 952item.ForeColor = value; 956item.ForeColor = value;
System\Windows\Forms\ListViewSubItemTests.cs (6)
31yield return new object[] { new ListViewItem() { BackColor = Color.Yellow, ForeColor = Color.Yellow, Font = SystemFonts.StatusFont }, "reasonable", "reasonable" }; 57yield return new object[] { new ListViewItem() { BackColor = Color.Yellow, ForeColor = Color.Yellow, Font = SystemFonts.StatusFont }, string.Empty, Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, string.Empty }; 350ForeColor = Color.Red 369ForeColor = Color.Blue 420ForeColor = Color.Blue 440ForeColor = Color.Blue
38 references to ForeColor
System.Windows.Forms (9)
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (2)
77ControlPaint.DrawFocusRectangle(Graphics, UpdateBounds(Bounds, drawText: false), Item.ForeColor, Item.BackColor); 91TextRenderer.DrawText(Graphics, Item.Text, Item.Font, UpdateBounds(Bounds, drawText: true), Item.ForeColor, flags);
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (2)
113ControlPaint.DrawFocusRectangle(Graphics, Rectangle.Inflate(bounds, -1, -1), Item.ForeColor, Item.BackColor); 139Color color = ItemIndex == -1 ? Item!.ForeColor : SubItem!.ForeColor;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (5)
934newItem.ForeColor = ForeColor; 1224else if (entry.Name == nameof(ForeColor)) 1226ForeColor = (Color)info.GetValue(nameof(ForeColor), typeof(Color))!; 1285info.AddValue(nameof(ForeColor), ForeColor);
System.Windows.Forms.Tests (29)
SerializableTypesTests.cs (1)
189Assert.Equal(Color.White, result.ForeColor);
System\Windows\Forms\ListViewItemTests.cs (28)
21Assert.Equal(SystemColors.WindowText, item.ForeColor); 60Assert.Equal(expectedForeColor, item.ForeColor); 98Assert.Equal(expectedForeColor, item.ForeColor); 136Assert.Equal(expectedForeColor, item.ForeColor); 174Assert.Equal(expectedForeColor, item.ForeColor); 211Assert.Equal(SystemColors.WindowText, item.ForeColor); 248Assert.Equal(SystemColors.WindowText, item.ForeColor); 286Assert.Equal(SystemColors.WindowText, item.ForeColor); 324Assert.Equal(SystemColors.WindowText, item.ForeColor); 361Assert.Equal(SystemColors.WindowText, item.ForeColor); 399Assert.Equal(SystemColors.WindowText, item.ForeColor); 437Assert.Equal(SystemColors.WindowText, item.ForeColor); 474Assert.Equal(SystemColors.WindowText, item.ForeColor); 512Assert.Equal(SystemColors.WindowText, item.ForeColor); 550Assert.Equal(SystemColors.WindowText, item.ForeColor); 588Assert.Equal(SystemColors.WindowText, item.ForeColor); 625Assert.Equal(SystemColors.WindowText, item.ForeColor); 663Assert.Equal(SystemColors.WindowText, item.ForeColor); 701Assert.Equal(SystemColors.WindowText, item.ForeColor); 738Assert.Equal(SystemColors.WindowText, item.ForeColor); 777Assert.Equal(SystemColors.WindowText, item.ForeColor); 807Assert.Equal(SystemColors.WindowText, item.ForeColor); 921Assert.Equal(expected, item.ForeColor); 925Assert.Equal(SystemColors.WindowText, item.ForeColor); 937Assert.Equal(expected, item.ForeColor); 941Assert.Equal(expected, item.ForeColor); 953Assert.Equal(expected, item.ForeColor); 957Assert.Equal(expected, item.ForeColor);