Base:
property
ForeColor
System.Windows.Forms.Control.ForeColor
14 writes to ForeColor
System.Windows.Forms.Tests (14)
System\Windows\Forms\ListViewItemTests.cs (1)
916
ForeColor
= value
System\Windows\Forms\ListViewSubItemTests.cs (3)
332
ForeColor
= Color.Red
365
ForeColor
= Color.Red
416
ForeColor
= Color.Red
System\Windows\Forms\ListViewTests.cs (10)
1321
ForeColor
= value
1327
control.
ForeColor
= value;
1354
control.
ForeColor
= value;
1362
control.
ForeColor
= value;
1376
control.
ForeColor
= Color.FromArgb(0x12, 0x34, 0x56, 0x78);
1394
control.
ForeColor
= Color.Red;
1399
control.
ForeColor
= Color.Red;
1404
control.
ForeColor
= Color.Empty;
1410
control.
ForeColor
= Color.Red;
1855
ForeColor
= Color.FromArgb(0x12, 0x34, 0x56, 0x78)
16 references to ForeColor
System.Windows.Forms (7)
System\Windows\Forms\Controls\ListView\ListView.cs (5)
839
PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (WPARAM)0, (LPARAM)
ForeColor
);
2598
_odCacheForeColor =
ForeColor
;
4546
PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (WPARAM)0, (LPARAM)
ForeColor
);
4944
c =
ForeColor
;
5958
PInvokeCore.SetTextColor(nmlvcd->nmcd.hdc,
ForeColor
);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
419
return _listView.
ForeColor
;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.cs (1)
173
return _owner?._listView?.
ForeColor
?? SystemColors.WindowText;
System.Windows.Forms.Tests (9)
System\Windows\Forms\ListViewTests.cs (9)
81
Assert.Equal(SystemColors.WindowText, control.
ForeColor
);
1323
Assert.Equal(expected, control.
ForeColor
);
1328
Assert.Equal(expected, control.
ForeColor
);
1355
Assert.Equal(expected, control.
ForeColor
);
1363
Assert.Equal(expected, control.
ForeColor
);
1395
Assert.Equal(Color.Red, control.
ForeColor
);
1400
Assert.Equal(Color.Red, control.
ForeColor
);
1405
Assert.Equal(SystemColors.WindowText, control.
ForeColor
);
1411
Assert.Equal(Color.Red, control.
ForeColor
);