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