32 writes to SelectionBackColor
System.Windows.Forms (31)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (4)
1549
SelectionBackColor
= DefaultSelectionBackBrush.Color,
2003
defaultCellStyleTmp.
SelectionBackColor
= DefaultSelectionBackBrush.Color;
2062
SelectionBackColor
= DefaultSelectionBackBrush.Color,
2099
SelectionBackColor
= DefaultSelectionBackBrush.Color,
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
2832
inheritedCellStyle.
SelectionBackColor
= cellStyle.SelectionBackColor;
2836
inheritedCellStyle.
SelectionBackColor
= columnHeadersStyle.SelectionBackColor;
2840
inheritedCellStyle.
SelectionBackColor
= dataGridViewStyle.SelectionBackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (7)
1884
inheritedCellStyleTmp.
SelectionBackColor
= Color.Empty;
1973
inheritedCellStyleTmp.
SelectionBackColor
= cellStyle.SelectionBackColor;
1977
inheritedCellStyleTmp.
SelectionBackColor
= rowStyle.SelectionBackColor;
1982
inheritedCellStyleTmp.
SelectionBackColor
= DataGridView.RowsDefaultCellStyle.SelectionBackColor;
1986
inheritedCellStyleTmp.
SelectionBackColor
= DataGridView.AlternatingRowsDefaultCellStyle.SelectionBackColor;
1990
inheritedCellStyleTmp.
SelectionBackColor
= columnStyle.SelectionBackColor;
1994
inheritedCellStyleTmp.
SelectionBackColor
= dataGridViewStyle.SelectionBackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
47
SelectionBackColor
= dataGridViewCellStyle.SelectionBackColor;
390
SelectionBackColor
= dataGridViewCellStyle.SelectionBackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
467
inheritedCellStyleTmp.
SelectionBackColor
= columnStyle.SelectionBackColor;
471
inheritedCellStyleTmp.
SelectionBackColor
= dataGridViewStyle.SelectionBackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (3)
329
inheritedCellStyleTmp.
SelectionBackColor
= cellStyle.SelectionBackColor;
333
inheritedCellStyleTmp.
SelectionBackColor
= columnHeadersStyle.SelectionBackColor;
337
inheritedCellStyleTmp.
SelectionBackColor
= dataGridViewStyle.SelectionBackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (7)
643
inheritedCellStyle.
SelectionBackColor
= cellStyle.SelectionBackColor;
647
inheritedCellStyle.
SelectionBackColor
= rowHeadersStyle.SelectionBackColor;
651
inheritedCellStyle.
SelectionBackColor
= dataGridViewStyle.SelectionBackColor;
849
inheritedRowStyle.
SelectionBackColor
= rowStyle.SelectionBackColor;
853
inheritedRowStyle.
SelectionBackColor
= rowsDefaultCellStyle.SelectionBackColor;
857
inheritedRowStyle.
SelectionBackColor
= alternatingRowsDefaultCellStyle.SelectionBackColor;
861
inheritedRowStyle.
SelectionBackColor
= dataGridViewStyle.SelectionBackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
354
inheritedCellStyleTmp.
SelectionBackColor
= cellStyle.SelectionBackColor;
358
inheritedCellStyleTmp.
SelectionBackColor
= rowHeadersStyle.SelectionBackColor;
362
inheritedCellStyleTmp.
SelectionBackColor
= dataGridViewStyle.SelectionBackColor;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
400
destColumn.DefaultCellStyle.
SelectionBackColor
= srcColumn.DefaultCellStyle.SelectionBackColor;
74 references to SelectionBackColor
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
1016
(this.Selected) ? cellStyle.
SelectionBackColor
: cellStyle.BackColor);
System.Windows.Forms (70)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
1980
|| _defaultCellStyle.
SelectionBackColor
== Color.Empty
2001
if (_defaultCellStyle.
SelectionBackColor
== Color.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
2830
if (cellStyle is not null && !cellStyle.
SelectionBackColor
.IsEmpty)
2832
inheritedCellStyle.SelectionBackColor = cellStyle.
SelectionBackColor
;
2834
else if (!columnHeadersStyle.
SelectionBackColor
.IsEmpty)
2836
inheritedCellStyle.SelectionBackColor = columnHeadersStyle.
SelectionBackColor
;
2840
inheritedCellStyle.SelectionBackColor = dataGridViewStyle.
SelectionBackColor
;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
666
? cellStyle.
SelectionBackColor
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
216
!defaultCellStyle.
SelectionBackColor
.IsEmpty ||
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (12)
1971
if (cellStyle is not null && !cellStyle.
SelectionBackColor
.IsEmpty)
1973
inheritedCellStyleTmp.SelectionBackColor = cellStyle.
SelectionBackColor
;
1975
else if (rowStyle is not null && !rowStyle.
SelectionBackColor
.IsEmpty)
1977
inheritedCellStyleTmp.SelectionBackColor = rowStyle.
SelectionBackColor
;
1979
else if (!DataGridView.RowsDefaultCellStyle.
SelectionBackColor
.IsEmpty &&
1980
(rowIndex % 2 == 0 || DataGridView.AlternatingRowsDefaultCellStyle.
SelectionBackColor
.IsEmpty))
1982
inheritedCellStyleTmp.SelectionBackColor = DataGridView.RowsDefaultCellStyle.
SelectionBackColor
;
1984
else if (rowIndex % 2 == 1 && !DataGridView.AlternatingRowsDefaultCellStyle.
SelectionBackColor
.IsEmpty)
1986
inheritedCellStyleTmp.SelectionBackColor = DataGridView.AlternatingRowsDefaultCellStyle.
SelectionBackColor
;
1988
else if (columnStyle is not null && !columnStyle.
SelectionBackColor
.IsEmpty)
1990
inheritedCellStyleTmp.SelectionBackColor = columnStyle.
SelectionBackColor
;
1994
inheritedCellStyleTmp.SelectionBackColor = dataGridViewStyle.
SelectionBackColor
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (8)
47
SelectionBackColor = dataGridViewCellStyle.
SelectionBackColor
;
388
if (!dataGridViewCellStyle.
SelectionBackColor
.IsEmpty)
390
SelectionBackColor = dataGridViewCellStyle.
SelectionBackColor
;
467
dgvcs.
SelectionBackColor
!=
SelectionBackColor
||
493
hash.Add(
SelectionBackColor
);
555
if (
SelectionBackColor
!= Color.Empty)
562
sb.Append($" SelectionBackColor={
SelectionBackColor
}");
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
1119
? cellStyle.
SelectionBackColor
1296
? cellStyle.
SelectionBackColor
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
302
!defaultCellStyle.
SelectionBackColor
.IsEmpty ||
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (4)
217
!defaultCellStyle.
SelectionBackColor
.IsEmpty ||
465
if (columnStyle is not null && !columnStyle.
SelectionBackColor
.IsEmpty)
467
inheritedCellStyleTmp.SelectionBackColor = columnStyle.
SelectionBackColor
;
471
inheritedCellStyleTmp.SelectionBackColor = dataGridViewStyle.
SelectionBackColor
;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (6)
327
if (cellStyle is not null && !cellStyle.
SelectionBackColor
.IsEmpty)
329
inheritedCellStyleTmp.SelectionBackColor = cellStyle.
SelectionBackColor
;
331
else if (!columnHeadersStyle.
SelectionBackColor
.IsEmpty)
333
inheritedCellStyleTmp.SelectionBackColor = columnHeadersStyle.
SelectionBackColor
;
337
inheritedCellStyleTmp.SelectionBackColor = dataGridViewStyle.
SelectionBackColor
;
868
? cellStyle.
SelectionBackColor
: cellStyle.BackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
1259
DataGridView.EditingPanel.BackColor = dataGridViewCellStyle.
SelectionBackColor
;
1925
? cellStyle.
SelectionBackColor
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
545
? cellStyle.
SelectionBackColor
: cellStyle.BackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
777
? cellStyle.
SelectionBackColor
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (1)
278
!defaultCellStyle.
SelectionBackColor
.IsEmpty ||
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
911
? cellStyle.
SelectionBackColor
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (14)
641
if (cellStyle is not null && !cellStyle.
SelectionBackColor
.IsEmpty)
643
inheritedCellStyle.SelectionBackColor = cellStyle.
SelectionBackColor
;
645
else if (!rowHeadersStyle.
SelectionBackColor
.IsEmpty)
647
inheritedCellStyle.SelectionBackColor = rowHeadersStyle.
SelectionBackColor
;
651
inheritedCellStyle.SelectionBackColor = dataGridViewStyle.
SelectionBackColor
;
847
if (rowStyle is not null && !rowStyle.
SelectionBackColor
.IsEmpty)
849
inheritedRowStyle.SelectionBackColor = rowStyle.
SelectionBackColor
;
851
else if (!rowsDefaultCellStyle.
SelectionBackColor
.IsEmpty && (rowIndex % 2 == 0 || alternatingRowsDefaultCellStyle.
SelectionBackColor
.IsEmpty))
853
inheritedRowStyle.SelectionBackColor = rowsDefaultCellStyle.
SelectionBackColor
;
855
else if (rowIndex % 2 == 1 && !alternatingRowsDefaultCellStyle.
SelectionBackColor
.IsEmpty)
857
inheritedRowStyle.SelectionBackColor = alternatingRowsDefaultCellStyle.
SelectionBackColor
;
861
inheritedRowStyle.SelectionBackColor = dataGridViewStyle.
SelectionBackColor
;
1194
backColor = cellStyle.
SelectionBackColor
;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (6)
352
if (cellStyle is not null && !cellStyle.
SelectionBackColor
.IsEmpty)
354
inheritedCellStyleTmp.SelectionBackColor = cellStyle.
SelectionBackColor
;
356
else if (!rowHeadersStyle.
SelectionBackColor
.IsEmpty)
358
inheritedCellStyleTmp.SelectionBackColor = rowHeadersStyle.
SelectionBackColor
;
362
inheritedCellStyleTmp.SelectionBackColor = dataGridViewStyle.
SelectionBackColor
;
736
? cellStyle.
SelectionBackColor
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
684
? cellStyle.
SelectionBackColor
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (1)
265
? cellStyle.
SelectionBackColor
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (3)
398
if (defaultSrcColumn is null || !defaultSrcColumn.DefaultCellStyle.
SelectionBackColor
.Equals(srcColumn.DefaultCellStyle.
SelectionBackColor
))
400
destColumn.DefaultCellStyle.SelectionBackColor = srcColumn.DefaultCellStyle.
SelectionBackColor
;