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