31 writes to BackColor
System.Windows.Forms (31)
winforms\Managed\System\WinForms\DataGridView.cs (4)
1948defaultStyle.BackColor = DefaultHeadersBackBrush.Color; 2516defaultCellStyleTmp.BackColor = DefaultBackBrush.Color; 2575defaultCellStyle.BackColor = DefaultBackBrush.Color; 2637defaultStyle.BackColor = DefaultHeadersBackBrush.Color;
winforms\Managed\System\WinForms\DataGridViewCell.cs (7)
2176inheritedCellStyleTmp.BackColor = Color.Empty; 2215inheritedCellStyleTmp.BackColor = cellStyle.BackColor; 2219inheritedCellStyleTmp.BackColor = rowStyle.BackColor; 2224inheritedCellStyleTmp.BackColor = this.DataGridView.RowsDefaultCellStyle.BackColor; 2228inheritedCellStyleTmp.BackColor = this.DataGridView.AlternatingRowsDefaultCellStyle.BackColor; 2232inheritedCellStyleTmp.BackColor = columnStyle.BackColor; 2236inheritedCellStyleTmp.BackColor = dataGridViewStyle.BackColor;
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (2)
66this.BackColor = dataGridViewCellStyle.BackColor; 608this.BackColor = dataGridViewCellStyle.BackColor;
winforms\Managed\System\WinForms\DataGridViewColumn.cs (2)
638inheritedCellStyleTmp.BackColor = columnStyle.BackColor; 642inheritedCellStyleTmp.BackColor = dataGridViewStyle.BackColor;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (3)
340inheritedCellStyleTmp.BackColor = cellStyle.BackColor; 344inheritedCellStyleTmp.BackColor = columnHeadersStyle.BackColor; 348inheritedCellStyleTmp.BackColor = dataGridViewStyle.BackColor;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (3)
2843inheritedCellStyle.BackColor = cellStyle.BackColor; 2847inheritedCellStyle.BackColor = columnHeadersStyle.BackColor; 2851inheritedCellStyle.BackColor = dataGridViewStyle.BackColor;
winforms\Managed\System\WinForms\DataGridViewRow.cs (7)
699inheritedCellStyle.BackColor = cellStyle.BackColor; 703inheritedCellStyle.BackColor = rowHeadersStyle.BackColor; 707inheritedCellStyle.BackColor = dataGridViewStyle.BackColor; 893inheritedRowStyle.BackColor = rowStyle.BackColor; 897inheritedRowStyle.BackColor = rowsDefaultCellStyle.BackColor; 901inheritedRowStyle.BackColor = alternatingRowsDefaultCellStyle.BackColor; 905inheritedRowStyle.BackColor = dataGridViewStyle.BackColor;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (3)
466inheritedCellStyleTmp.BackColor = cellStyle.BackColor; 470inheritedCellStyleTmp.BackColor = rowHeadersStyle.BackColor; 474inheritedCellStyleTmp.BackColor = dataGridViewStyle.BackColor;
94 references to BackColor
System.Windows.Forms (94)
winforms\Managed\System\WinForms\DataGridView.cs (2)
2504else if (this.defaultCellStyle.BackColor == Color.Empty || 2514if (this.defaultCellStyle.BackColor == Color.Empty)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (7)
719SolidBrush backBrush = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor); 813cellStyle.BackColor, 876cellStyle.BackColor, 894cellStyle.BackColor, 907cellStyle.BackColor, 953cellStyle.BackColor, 1005cellStyle.BackColor);
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (1)
233return (!defaultCellStyle.BackColor.IsEmpty ||
winforms\Managed\System\WinForms\DataGridViewCell.cs (14)
2213if (cellStyle != null && !cellStyle.BackColor.IsEmpty) 2215inheritedCellStyleTmp.BackColor = cellStyle.BackColor; 2217else if (rowStyle != null && !rowStyle.BackColor.IsEmpty) 2219inheritedCellStyleTmp.BackColor = rowStyle.BackColor; 2221else if (!this.DataGridView.RowsDefaultCellStyle.BackColor.IsEmpty && 2222(rowIndex % 2 == 0 || this.DataGridView.AlternatingRowsDefaultCellStyle.BackColor.IsEmpty)) 2224inheritedCellStyleTmp.BackColor = this.DataGridView.RowsDefaultCellStyle.BackColor; 2226else if (rowIndex % 2 == 1 && !this.DataGridView.AlternatingRowsDefaultCellStyle.BackColor.IsEmpty) 2228inheritedCellStyleTmp.BackColor = this.DataGridView.AlternatingRowsDefaultCellStyle.BackColor; 2230else if (columnStyle != null && !columnStyle.BackColor.IsEmpty) 2232inheritedCellStyleTmp.BackColor = columnStyle.BackColor; 2236inheritedCellStyleTmp.BackColor = dataGridViewStyle.BackColor; 3565Pen penBackColor = this.DataGridView.GetCachedPen(cellStyle.BackColor); 3568GetContrastedPens(cellStyle.BackColor, ref penControlDark, ref penControlLightLight);
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (10)
66this.BackColor = dataGridViewCellStyle.BackColor; 153Color c = this.BackColor; 158if (!c.Equals(this.BackColor)) 606if (!dataGridViewCellStyle.BackColor.IsEmpty) 608this.BackColor = dataGridViewCellStyle.BackColor; 695dgvcs.BackColor != this.BackColor || 721this.BackColor.GetHashCode(), 821if (this.BackColor != Color.Empty) 823sb.Append(" BackColor=" + this.BackColor.ToString());
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (5)
1217SolidBrush br = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor); 1372backBrush = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor); 1490cellStyle.BackColor, 1537cellStyle.BackColor, 1582cellStyle.BackColor,
winforms\Managed\System\WinForms\DataGridViewCheckBoxColumn.cs (1)
338return (!defaultCellStyle.BackColor.IsEmpty ||
winforms\Managed\System\WinForms\DataGridViewColumn.cs (4)
314return (!defaultCellStyle.BackColor.IsEmpty || 636if (columnStyle != null && !columnStyle.BackColor.IsEmpty) 638inheritedCellStyleTmp.BackColor = columnStyle.BackColor; 642inheritedCellStyleTmp.BackColor = dataGridViewStyle.BackColor;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (7)
338if (cellStyle != null && !cellStyle.BackColor.IsEmpty) 340inheritedCellStyleTmp.BackColor = cellStyle.BackColor; 342else if (!columnHeadersStyle.BackColor.IsEmpty) 344inheritedCellStyleTmp.BackColor = columnHeadersStyle.BackColor; 348inheritedCellStyleTmp.BackColor = dataGridViewStyle.BackColor; 894cellStyle.SelectionBackColor : cellStyle.BackColor); 1019GetContrastedPens(cellStyle.BackColor, ref penControlDark, ref penControlLightLight);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
2166br = this.DataGridView.GetCachedBrush(cellStyle.BackColor); 2304br = this.DataGridView.GetCachedBrush(cellStyle.BackColor);
winforms\Managed\System\WinForms\DataGridViewComboBoxEditingControl.cs (3)
132if (dataGridViewCellStyle.BackColor.A < 255) 135Color opaqueBackColor = Color.FromArgb(255, dataGridViewCellStyle.BackColor); 141this.BackColor = dataGridViewCellStyle.BackColor;
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
656SolidBrush br = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
841SolidBrush br = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor);
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (1)
330return (!defaultCellStyle.BackColor.IsEmpty ||
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
1019SolidBrush br = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (6)
2737this.editingPanel.BackColor = dgvese.CellStyle.BackColor; 2841if (cellStyle != null && !cellStyle.BackColor.IsEmpty) 2843inheritedCellStyle.BackColor = cellStyle.BackColor; 2845else if (!columnHeadersStyle.BackColor.IsEmpty) 2847inheritedCellStyle.BackColor = columnHeadersStyle.BackColor; 2851inheritedCellStyle.BackColor = dataGridViewStyle.BackColor;
winforms\Managed\System\WinForms\DataGridViewRow.cs (14)
697if (cellStyle != null && !cellStyle.BackColor.IsEmpty) 699inheritedCellStyle.BackColor = cellStyle.BackColor; 701else if (!rowHeadersStyle.BackColor.IsEmpty) 703inheritedCellStyle.BackColor = rowHeadersStyle.BackColor; 707inheritedCellStyle.BackColor = dataGridViewStyle.BackColor; 891if (rowStyle != null && !rowStyle.BackColor.IsEmpty) 893inheritedRowStyle.BackColor = rowStyle.BackColor; 895else if (!rowsDefaultCellStyle.BackColor.IsEmpty && (rowIndex % 2 == 0 || alternatingRowsDefaultCellStyle.BackColor.IsEmpty)) 897inheritedRowStyle.BackColor = rowsDefaultCellStyle.BackColor; 899else if (rowIndex % 2 == 1 && !alternatingRowsDefaultCellStyle.BackColor.IsEmpty) 901inheritedRowStyle.BackColor = alternatingRowsDefaultCellStyle.BackColor; 905inheritedRowStyle.BackColor = dataGridViewStyle.BackColor; 1298backColor = cellStyle.BackColor;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (6)
464if (cellStyle != null && !cellStyle.BackColor.IsEmpty) 466inheritedCellStyleTmp.BackColor = cellStyle.BackColor; 468else if (!rowHeadersStyle.BackColor.IsEmpty) 470inheritedCellStyleTmp.BackColor = rowHeadersStyle.BackColor; 474inheritedCellStyleTmp.BackColor = dataGridViewStyle.BackColor; 866SolidBrush br = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
714br = this.DataGridView.GetCachedBrush(cellStyle.BackColor);
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (3)
134if (dataGridViewCellStyle.BackColor.A < 255) 137Color opaqueBackColor = Color.FromArgb(255, dataGridViewCellStyle.BackColor); 143this.BackColor = dataGridViewCellStyle.BackColor;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (4)
305SolidBrush br = this.DataGridView.GetCachedBrush((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor); 409GetContrastedPens(cellStyle.BackColor, ref penControlDark, ref penControlLightLight); 416GetContrastedPens(cellStyle.BackColor, ref penControlDark, ref penControlLightLight); 423GetContrastedPens(cellStyle.BackColor, ref penControlDark, ref penControlLightLight);