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