32 writes to ForeColor
System.Windows.Forms (32)
winforms\Managed\System\WinForms\DataGridView.cs (4)
1949
defaultStyle.
ForeColor
= DefaultForeBrush.Color;
2520
defaultCellStyleTmp.
ForeColor
= base.ForeColor;
2576
defaultCellStyle.
ForeColor
= base.ForeColor;
2638
defaultStyle.
ForeColor
= DefaultForeBrush.Color;
winforms\Managed\System\WinForms\DataGridViewCell.cs (7)
2177
inheritedCellStyleTmp.
ForeColor
= Color.Empty;
2241
inheritedCellStyleTmp.
ForeColor
= cellStyle.ForeColor;
2245
inheritedCellStyleTmp.
ForeColor
= rowStyle.ForeColor;
2250
inheritedCellStyleTmp.
ForeColor
= this.DataGridView.RowsDefaultCellStyle.ForeColor;
2254
inheritedCellStyleTmp.
ForeColor
= this.DataGridView.AlternatingRowsDefaultCellStyle.ForeColor;
2258
inheritedCellStyleTmp.
ForeColor
= columnStyle.ForeColor;
2262
inheritedCellStyleTmp.
ForeColor
= dataGridViewStyle.ForeColor;
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (2)
67
this.
ForeColor
= dataGridViewCellStyle.ForeColor;
612
this.
ForeColor
= dataGridViewCellStyle.ForeColor;
winforms\Managed\System\WinForms\DataGridViewColumn.cs (2)
647
inheritedCellStyleTmp.
ForeColor
= columnStyle.ForeColor;
651
inheritedCellStyleTmp.
ForeColor
= dataGridViewStyle.ForeColor;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (3)
353
inheritedCellStyleTmp.
ForeColor
= cellStyle.ForeColor;
357
inheritedCellStyleTmp.
ForeColor
= columnHeadersStyle.ForeColor;
361
inheritedCellStyleTmp.
ForeColor
= dataGridViewStyle.ForeColor;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (4)
2856
inheritedCellStyle.
ForeColor
= cellStyle.ForeColor;
2860
inheritedCellStyle.
ForeColor
= columnHeadersStyle.ForeColor;
2864
inheritedCellStyle.
ForeColor
= dataGridViewStyle.ForeColor;
15635
this.DefaultCellStyle.
ForeColor
= base.ForeColor;
winforms\Managed\System\WinForms\DataGridViewRow.cs (7)
712
inheritedCellStyle.
ForeColor
= cellStyle.ForeColor;
716
inheritedCellStyle.
ForeColor
= rowHeadersStyle.ForeColor;
720
inheritedCellStyle.
ForeColor
= dataGridViewStyle.ForeColor;
910
inheritedRowStyle.
ForeColor
= rowStyle.ForeColor;
914
inheritedRowStyle.
ForeColor
= rowsDefaultCellStyle.ForeColor;
918
inheritedRowStyle.
ForeColor
= alternatingRowsDefaultCellStyle.ForeColor;
922
inheritedRowStyle.
ForeColor
= dataGridViewStyle.ForeColor;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (3)
479
inheritedCellStyleTmp.
ForeColor
= cellStyle.ForeColor;
483
inheritedCellStyleTmp.
ForeColor
= rowHeadersStyle.ForeColor;
487
inheritedCellStyleTmp.
ForeColor
= dataGridViewStyle.ForeColor;
80 references to ForeColor
System.Windows.Forms (80)
winforms\Managed\System\WinForms\DataGridView.cs (2)
2505
this.defaultCellStyle.
ForeColor
== Color.Empty ||
2518
if (this.defaultCellStyle.
ForeColor
== Color.Empty)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (7)
720
SolidBrush foreBrush = this.DataGridView.GetCachedBrush(cellSelected ? cellStyle.SelectionForeColor : cellStyle.
ForeColor
);
812
cellStyle.
ForeColor
,
875
cellStyle.
ForeColor
,
893
cellStyle.
ForeColor
,
906
cellStyle.
ForeColor
,
952
cellStyle.
ForeColor
,
1004
cellStyle.
ForeColor
,
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (1)
234
!defaultCellStyle.
ForeColor
.IsEmpty ||
winforms\Managed\System\WinForms\DataGridViewCell.cs (12)
2239
if (cellStyle != null && !cellStyle.
ForeColor
.IsEmpty)
2241
inheritedCellStyleTmp.ForeColor = cellStyle.
ForeColor
;
2243
else if (rowStyle != null && !rowStyle.
ForeColor
.IsEmpty)
2245
inheritedCellStyleTmp.ForeColor = rowStyle.
ForeColor
;
2247
else if (!this.DataGridView.RowsDefaultCellStyle.
ForeColor
.IsEmpty &&
2248
(rowIndex % 2 == 0 || this.DataGridView.AlternatingRowsDefaultCellStyle.
ForeColor
.IsEmpty))
2250
inheritedCellStyleTmp.ForeColor = this.DataGridView.RowsDefaultCellStyle.
ForeColor
;
2252
else if (rowIndex % 2 == 1 && !this.DataGridView.AlternatingRowsDefaultCellStyle.
ForeColor
.IsEmpty)
2254
inheritedCellStyleTmp.ForeColor = this.DataGridView.AlternatingRowsDefaultCellStyle.
ForeColor
;
2256
else if (columnStyle != null && !columnStyle.
ForeColor
.IsEmpty)
2258
inheritedCellStyleTmp.ForeColor = columnStyle.
ForeColor
;
2262
inheritedCellStyleTmp.ForeColor = dataGridViewStyle.
ForeColor
;
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (10)
67
this.ForeColor = dataGridViewCellStyle.
ForeColor
;
247
Color c = this.
ForeColor
;
252
if (!c.Equals(this.
ForeColor
))
610
if (!dataGridViewCellStyle.
ForeColor
.IsEmpty)
612
this.ForeColor = dataGridViewCellStyle.
ForeColor
;
696
dgvcs.
ForeColor
!= this.
ForeColor
||
722
this.
ForeColor
.GetHashCode(),
826
if (this.
ForeColor
!= Color.Empty)
832
sb.Append(" ForeColor=" + this.
ForeColor
.ToString());
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (4)
1371
foreBrush = this.DataGridView.GetCachedBrush(cellSelected ? cellStyle.SelectionForeColor : cellStyle.
ForeColor
);
1489
cellStyle.
ForeColor
,
1536
cellStyle.
ForeColor
,
1581
cellStyle.
ForeColor
,
winforms\Managed\System\WinForms\DataGridViewCheckBoxColumn.cs (1)
339
!defaultCellStyle.
ForeColor
.IsEmpty ||
winforms\Managed\System\WinForms\DataGridViewColumn.cs (4)
315
!defaultCellStyle.
ForeColor
.IsEmpty ||
645
if (columnStyle != null && !columnStyle.
ForeColor
.IsEmpty)
647
inheritedCellStyleTmp.ForeColor = columnStyle.
ForeColor
;
651
inheritedCellStyleTmp.ForeColor = dataGridViewStyle.
ForeColor
;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (6)
351
if (cellStyle != null && !cellStyle.
ForeColor
.IsEmpty)
353
inheritedCellStyleTmp.ForeColor = cellStyle.
ForeColor
;
355
else if (!columnHeadersStyle.
ForeColor
.IsEmpty)
357
inheritedCellStyleTmp.ForeColor = columnHeadersStyle.
ForeColor
;
361
inheritedCellStyleTmp.ForeColor = dataGridViewStyle.
ForeColor
;
937
textColor = cellSelected ? cellStyle.SelectionForeColor : cellStyle.
ForeColor
;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
2614
textColor = cellSelected ? cellStyle.SelectionForeColor : cellStyle.
ForeColor
;
winforms\Managed\System\WinForms\DataGridViewComboBoxEditingControl.cs (1)
143
this.ForeColor = dataGridViewCellStyle.
ForeColor
;
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (1)
331
!defaultCellStyle.
ForeColor
.IsEmpty ||
winforms\Managed\System\WinForms\DataGridViewMethods.cs (6)
2854
if (cellStyle != null && !cellStyle.
ForeColor
.IsEmpty)
2856
inheritedCellStyle.ForeColor = cellStyle.
ForeColor
;
2858
else if (!columnHeadersStyle.
ForeColor
.IsEmpty)
2860
inheritedCellStyle.ForeColor = columnHeadersStyle.
ForeColor
;
2864
inheritedCellStyle.ForeColor = dataGridViewStyle.
ForeColor
;
15633
if (this.dataGridViewState1[DATAGRIDVIEWSTATE1_ambientForeColor] && this.DefaultCellStyle.
ForeColor
!= base.ForeColor)
winforms\Managed\System\WinForms\DataGridViewRow.cs (13)
710
if (cellStyle != null && !cellStyle.
ForeColor
.IsEmpty)
712
inheritedCellStyle.ForeColor = cellStyle.
ForeColor
;
714
else if (!rowHeadersStyle.
ForeColor
.IsEmpty)
716
inheritedCellStyle.ForeColor = rowHeadersStyle.
ForeColor
;
720
inheritedCellStyle.ForeColor = dataGridViewStyle.
ForeColor
;
908
if (rowStyle != null && !rowStyle.
ForeColor
.IsEmpty)
910
inheritedRowStyle.ForeColor = rowStyle.
ForeColor
;
912
else if (!rowsDefaultCellStyle.
ForeColor
.IsEmpty && (rowIndex % 2 == 0 || alternatingRowsDefaultCellStyle.
ForeColor
.IsEmpty))
914
inheritedRowStyle.ForeColor = rowsDefaultCellStyle.
ForeColor
;
916
else if (rowIndex % 2 == 1 && !alternatingRowsDefaultCellStyle.
ForeColor
.IsEmpty)
918
inheritedRowStyle.ForeColor = alternatingRowsDefaultCellStyle.
ForeColor
;
922
inheritedRowStyle.ForeColor = dataGridViewStyle.
ForeColor
;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (8)
477
if (cellStyle != null && !cellStyle.
ForeColor
.IsEmpty)
479
inheritedCellStyleTmp.ForeColor = cellStyle.
ForeColor
;
481
else if (!rowHeadersStyle.
ForeColor
.IsEmpty)
483
inheritedCellStyleTmp.ForeColor = rowHeadersStyle.
ForeColor
;
487
inheritedCellStyleTmp.ForeColor = dataGridViewStyle.
ForeColor
;
951
iconColor = cellSelected ? cellStyle.SelectionForeColor : cellStyle.
ForeColor
;
1005
textColor = cellSelected ? cellStyle.SelectionForeColor : cellStyle.
ForeColor
;
1099
iconColor = cellSelected ? cellStyle.SelectionForeColor : cellStyle.
ForeColor
;
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
774
cellSelected ? cellStyle.SelectionForeColor : cellStyle.
ForeColor
,
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (1)
145
this.ForeColor = dataGridViewCellStyle.
ForeColor
;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
351
textColor = cellSelected ? cellStyle.SelectionForeColor : cellStyle.
ForeColor
;