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