32 writes to BackColor
System.Windows.Forms (31)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (4)
1547
BackColor
= DefaultHeadersBackBrush.Color,
1992
defaultCellStyleTmp.
BackColor
= s_defaultBackColor;
2060
BackColor
= s_defaultBackColor,
2097
BackColor
= DefaultHeadersBackBrush.Color,
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
2806
inheritedCellStyle.
BackColor
= cellStyle.BackColor;
2810
inheritedCellStyle.
BackColor
= columnHeadersStyle.BackColor;
2814
inheritedCellStyle.
BackColor
= dataGridViewStyle.BackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (7)
1882
inheritedCellStyleTmp.
BackColor
= Color.Empty;
1921
inheritedCellStyleTmp.
BackColor
= cellStyle.BackColor;
1925
inheritedCellStyleTmp.
BackColor
= rowStyle.BackColor;
1930
inheritedCellStyleTmp.
BackColor
= DataGridView.RowsDefaultCellStyle.BackColor;
1934
inheritedCellStyleTmp.
BackColor
= DataGridView.AlternatingRowsDefaultCellStyle.BackColor;
1938
inheritedCellStyleTmp.
BackColor
= columnStyle.BackColor;
1942
inheritedCellStyleTmp.
BackColor
= dataGridViewStyle.BackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
45
BackColor
= dataGridViewCellStyle.BackColor;
380
BackColor
= dataGridViewCellStyle.BackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
449
inheritedCellStyleTmp.
BackColor
= columnStyle.BackColor;
453
inheritedCellStyleTmp.
BackColor
= dataGridViewStyle.BackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (3)
303
inheritedCellStyleTmp.
BackColor
= cellStyle.BackColor;
307
inheritedCellStyleTmp.
BackColor
= columnHeadersStyle.BackColor;
311
inheritedCellStyleTmp.
BackColor
= dataGridViewStyle.BackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (7)
617
inheritedCellStyle.
BackColor
= cellStyle.BackColor;
621
inheritedCellStyle.
BackColor
= rowHeadersStyle.BackColor;
625
inheritedCellStyle.
BackColor
= dataGridViewStyle.BackColor;
815
inheritedRowStyle.
BackColor
= rowStyle.BackColor;
819
inheritedRowStyle.
BackColor
= rowsDefaultCellStyle.BackColor;
823
inheritedRowStyle.
BackColor
= alternatingRowsDefaultCellStyle.BackColor;
827
inheritedRowStyle.
BackColor
= dataGridViewStyle.BackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
328
inheritedCellStyleTmp.
BackColor
= cellStyle.BackColor;
332
inheritedCellStyleTmp.
BackColor
= rowHeadersStyle.BackColor;
336
inheritedCellStyleTmp.
BackColor
= dataGridViewStyle.BackColor;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
375
destColumn.DefaultCellStyle.
BackColor
= srcColumn.DefaultCellStyle.BackColor;
97 references to BackColor
PresentationUI (2)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (2)
481
BackgroundColor = DefaultCellStyle.
BackColor
;
1016
(this.Selected) ? cellStyle.SelectionBackColor : cellStyle.
BackColor
);
System.Windows.Forms (92)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
1978
else if (_defaultCellStyle.
BackColor
== Color.Empty
1990
if (_defaultCellStyle.
BackColor
== Color.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
2698
_editingPanel.BackColor = dgvese.CellStyle.
BackColor
;
2804
if (cellStyle is not null && !cellStyle.
BackColor
.IsEmpty)
2806
inheritedCellStyle.BackColor = cellStyle.
BackColor
;
2808
else if (!columnHeadersStyle.
BackColor
.IsEmpty)
2810
inheritedCellStyle.BackColor = columnHeadersStyle.
BackColor
;
2814
inheritedCellStyle.BackColor = dataGridViewStyle.
BackColor
;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (6)
667
: cellStyle.
BackColor
;
773
cellStyle.
BackColor
,
805
cellStyle.
BackColor
,
826
cellStyle.
BackColor
,
841
cellStyle.
BackColor
,
897
cellStyle.
BackColor
,
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
214
return (!defaultCellStyle.
BackColor
.IsEmpty ||
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (14)
1919
if (cellStyle is not null && !cellStyle.
BackColor
.IsEmpty)
1921
inheritedCellStyleTmp.BackColor = cellStyle.
BackColor
;
1923
else if (rowStyle is not null && !rowStyle.
BackColor
.IsEmpty)
1925
inheritedCellStyleTmp.BackColor = rowStyle.
BackColor
;
1927
else if (!DataGridView.RowsDefaultCellStyle.
BackColor
.IsEmpty &&
1928
(rowIndex % 2 == 0 || DataGridView.AlternatingRowsDefaultCellStyle.
BackColor
.IsEmpty))
1930
inheritedCellStyleTmp.BackColor = DataGridView.RowsDefaultCellStyle.
BackColor
;
1932
else if (rowIndex % 2 == 1 && !DataGridView.AlternatingRowsDefaultCellStyle.
BackColor
.IsEmpty)
1934
inheritedCellStyleTmp.BackColor = DataGridView.AlternatingRowsDefaultCellStyle.
BackColor
;
1936
else if (columnStyle is not null && !columnStyle.
BackColor
.IsEmpty)
1938
inheritedCellStyleTmp.BackColor = columnStyle.
BackColor
;
1942
inheritedCellStyleTmp.BackColor = dataGridViewStyle.
BackColor
;
3128
using var penBackColor = cellStyle.
BackColor
.GetCachedPenScope();
3131
(Color darkColor, Color lightColor) = GetContrastedColors(cellStyle.
BackColor
);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (8)
45
BackColor = dataGridViewCellStyle.
BackColor
;
378
if (!dataGridViewCellStyle.
BackColor
.IsEmpty)
380
BackColor = dataGridViewCellStyle.
BackColor
;
465
dgvcs.
BackColor
!=
BackColor
||
491
hash.Add(
BackColor
);
538
if (
BackColor
!= Color.Empty)
540
sb.Append($" BackColor={
BackColor
}");
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (6)
1120
: cellStyle.
BackColor
;
1151
ControlPaint.DrawFocusRectangle(g, valBounds, cellStyle.
BackColor
, cellStyle.ForeColor);
1297
: cellStyle.
BackColor
;
1417
cellStyle.
BackColor
,
1466
cellStyle.
BackColor
,
1513
cellStyle.
BackColor
,
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
300
return (!defaultCellStyle.
BackColor
.IsEmpty ||
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (4)
215
return (!defaultCellStyle.
BackColor
.IsEmpty ||
447
if (columnStyle is not null && !columnStyle.
BackColor
.IsEmpty)
449
inheritedCellStyleTmp.BackColor = columnStyle.
BackColor
;
453
inheritedCellStyleTmp.BackColor = dataGridViewStyle.
BackColor
;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (7)
301
if (cellStyle is not null && !cellStyle.
BackColor
.IsEmpty)
303
inheritedCellStyleTmp.BackColor = cellStyle.
BackColor
;
305
else if (!columnHeadersStyle.
BackColor
.IsEmpty)
307
inheritedCellStyleTmp.BackColor = columnHeadersStyle.
BackColor
;
311
inheritedCellStyleTmp.BackColor = dataGridViewStyle.
BackColor
;
868
? cellStyle.SelectionBackColor : cellStyle.
BackColor
;
1004
(Color darkColor, Color lightColor) = GetContrastedColors(cellStyle.
BackColor
);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
1926
: cellStyle.
BackColor
;
2071
brushColor = cellStyle.
BackColor
;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (3)
74
if (dataGridViewCellStyle.
BackColor
.A < 255)
77
Color opaqueBackColor = Color.FromArgb(255, dataGridViewCellStyle.
BackColor
);
83
BackColor = dataGridViewCellStyle.
BackColor
;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
545
? cellStyle.SelectionBackColor : cellStyle.
BackColor
;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
778
: cellStyle.
BackColor
;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (1)
276
return (!defaultCellStyle.
BackColor
.IsEmpty ||
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
912
: cellStyle.
BackColor
;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (14)
615
if (cellStyle is not null && !cellStyle.
BackColor
.IsEmpty)
617
inheritedCellStyle.BackColor = cellStyle.
BackColor
;
619
else if (!rowHeadersStyle.
BackColor
.IsEmpty)
621
inheritedCellStyle.BackColor = rowHeadersStyle.
BackColor
;
625
inheritedCellStyle.BackColor = dataGridViewStyle.
BackColor
;
813
if (rowStyle is not null && !rowStyle.
BackColor
.IsEmpty)
815
inheritedRowStyle.BackColor = rowStyle.
BackColor
;
817
else if (!rowsDefaultCellStyle.
BackColor
.IsEmpty && (rowIndex % 2 == 0 || alternatingRowsDefaultCellStyle.
BackColor
.IsEmpty))
819
inheritedRowStyle.BackColor = rowsDefaultCellStyle.
BackColor
;
821
else if (rowIndex % 2 == 1 && !alternatingRowsDefaultCellStyle.
BackColor
.IsEmpty)
823
inheritedRowStyle.BackColor = alternatingRowsDefaultCellStyle.
BackColor
;
827
inheritedRowStyle.BackColor = dataGridViewStyle.
BackColor
;
1198
backColor = cellStyle.
BackColor
;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (8)
326
if (cellStyle is not null && !cellStyle.
BackColor
.IsEmpty)
328
inheritedCellStyleTmp.BackColor = cellStyle.
BackColor
;
330
else if (!rowHeadersStyle.
BackColor
.IsEmpty)
332
inheritedCellStyleTmp.BackColor = rowHeadersStyle.
BackColor
;
336
inheritedCellStyleTmp.BackColor = dataGridViewStyle.
BackColor
;
737
: cellStyle.
BackColor
;
829
PaintIcon(graphics, bmp, valBounds, iconColor, cellStyle.
BackColor
);
985
PaintIcon(graphics, bmp, valBounds, iconColor, cellStyle.
BackColor
);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
685
: cellStyle.
BackColor
;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (3)
99
if (dataGridViewCellStyle.
BackColor
.A < 255)
102
Color opaqueBackColor = Color.FromArgb(255, dataGridViewCellStyle.
BackColor
);
109
BackColor = dataGridViewCellStyle.
BackColor
;
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (2)
266
: cellStyle.
BackColor
;
373
(Color darkColor, Color lightColor) = GetContrastedColors(cellStyle.
BackColor
);
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (3)
373
if (defaultSrcColumn is null || !defaultSrcColumn.DefaultCellStyle.
BackColor
.Equals(srcColumn.DefaultCellStyle.
BackColor
))
375
destColumn.DefaultCellStyle.BackColor = srcColumn.DefaultCellStyle.
BackColor
;