15 writes to BackColor
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (4)
110BackColor = backColor; 201BackColor = backColor; 933newItem.BackColor = BackColor; 1214BackColor = (Color)info.GetValue(nameof(BackColor), typeof(Color))!;
System.Windows.Forms.Tests (11)
SerializableTypesTests.cs (1)
166BackColor = Color.Black,
System\Windows\Forms\ListViewItemTests.cs (4)
877BackColor = value 882item.BackColor = value; 894item.BackColor = value; 898item.BackColor = 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 }; 101BackColor = Color.Red 120BackColor = Color.Blue 169BackColor = Color.Blue 189BackColor = Color.Blue
38 references to BackColor
System.Windows.Forms (9)
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (2)
65using var backBrush = Item.BackColor.GetCachedSolidBrushScope(); 77ControlPaint.DrawFocusRectangle(Graphics, UpdateBounds(Bounds, drawText: false), Item.ForeColor, Item.BackColor);
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (2)
96Color backColor = ItemIndex == -1 ? Item!.BackColor : SubItem!.BackColor; 113ControlPaint.DrawFocusRectangle(Graphics, Rectangle.Inflate(bounds, -1, -1), Item.ForeColor, Item.BackColor);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (5)
933newItem.BackColor = BackColor; 1212else if (entry.Name == nameof(BackColor)) 1214BackColor = (Color)info.GetValue(nameof(BackColor), typeof(Color))!; 1282info.AddValue(nameof(BackColor), BackColor);
System.Windows.Forms.Tests (29)
SerializableTypesTests.cs (1)
188Assert.Equal(Color.Black, result.BackColor);
System\Windows\Forms\ListViewItemTests.cs (28)
16Assert.Equal(SystemColors.Window, item.BackColor); 55Assert.Equal(expectedBackColor, item.BackColor); 93Assert.Equal(expectedBackColor, item.BackColor); 131Assert.Equal(expectedBackColor, item.BackColor); 169Assert.Equal(expectedBackColor, item.BackColor); 206Assert.Equal(SystemColors.Window, item.BackColor); 243Assert.Equal(SystemColors.Window, item.BackColor); 281Assert.Equal(SystemColors.Window, item.BackColor); 319Assert.Equal(SystemColors.Window, item.BackColor); 356Assert.Equal(SystemColors.Window, item.BackColor); 394Assert.Equal(SystemColors.Window, item.BackColor); 432Assert.Equal(SystemColors.Window, item.BackColor); 469Assert.Equal(SystemColors.Window, item.BackColor); 507Assert.Equal(SystemColors.Window, item.BackColor); 545Assert.Equal(SystemColors.Window, item.BackColor); 583Assert.Equal(SystemColors.Window, item.BackColor); 620Assert.Equal(SystemColors.Window, item.BackColor); 658Assert.Equal(SystemColors.Window, item.BackColor); 696Assert.Equal(SystemColors.Window, item.BackColor); 733Assert.Equal(SystemColors.Window, item.BackColor); 772Assert.Equal(SystemColors.Window, item.BackColor); 802Assert.Equal(SystemColors.Window, item.BackColor); 864Assert.Equal(expected, item.BackColor); 868Assert.Equal(SystemColors.Window, item.BackColor); 879Assert.Equal(expected, item.BackColor); 883Assert.Equal(expected, item.BackColor); 895Assert.Equal(expected, item.BackColor); 899Assert.Equal(expected, item.BackColor);