31 writes to SelectionForeColor
System.Windows.Forms (31)
winforms\Managed\System\WinForms\DataGridView.cs (4)
1951
defaultStyle.
SelectionForeColor
= DefaultSelectionForeBrush.Color;
2529
defaultCellStyleTmp.
SelectionForeColor
= DefaultSelectionForeBrush.Color;
2578
defaultCellStyle.
SelectionForeColor
= DefaultSelectionForeBrush.Color;
2640
defaultStyle.
SelectionForeColor
= DefaultSelectionForeBrush.Color;
winforms\Managed\System\WinForms\DataGridViewCell.cs (7)
2179
inheritedCellStyleTmp.
SelectionForeColor
= Color.Empty;
2293
inheritedCellStyleTmp.
SelectionForeColor
= cellStyle.SelectionForeColor;
2297
inheritedCellStyleTmp.
SelectionForeColor
= rowStyle.SelectionForeColor;
2302
inheritedCellStyleTmp.
SelectionForeColor
= this.DataGridView.RowsDefaultCellStyle.SelectionForeColor;
2306
inheritedCellStyleTmp.
SelectionForeColor
= this.DataGridView.AlternatingRowsDefaultCellStyle.SelectionForeColor;
2310
inheritedCellStyleTmp.
SelectionForeColor
= columnStyle.SelectionForeColor;
2314
inheritedCellStyleTmp.
SelectionForeColor
= dataGridViewStyle.SelectionForeColor;
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (2)
69
this.
SelectionForeColor
= dataGridViewCellStyle.SelectionForeColor;
620
this.
SelectionForeColor
= dataGridViewCellStyle.SelectionForeColor;
winforms\Managed\System\WinForms\DataGridViewColumn.cs (2)
665
inheritedCellStyleTmp.
SelectionForeColor
= columnStyle.SelectionForeColor;
669
inheritedCellStyleTmp.
SelectionForeColor
= dataGridViewStyle.SelectionForeColor;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (3)
379
inheritedCellStyleTmp.
SelectionForeColor
= cellStyle.SelectionForeColor;
383
inheritedCellStyleTmp.
SelectionForeColor
= columnHeadersStyle.SelectionForeColor;
387
inheritedCellStyleTmp.
SelectionForeColor
= dataGridViewStyle.SelectionForeColor;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (3)
2882
inheritedCellStyle.
SelectionForeColor
= cellStyle.SelectionForeColor;
2886
inheritedCellStyle.
SelectionForeColor
= columnHeadersStyle.SelectionForeColor;
2890
inheritedCellStyle.
SelectionForeColor
= dataGridViewStyle.SelectionForeColor;
winforms\Managed\System\WinForms\DataGridViewRow.cs (7)
738
inheritedCellStyle.
SelectionForeColor
= cellStyle.SelectionForeColor;
742
inheritedCellStyle.
SelectionForeColor
= rowHeadersStyle.SelectionForeColor;
746
inheritedCellStyle.
SelectionForeColor
= dataGridViewStyle.SelectionForeColor;
944
inheritedRowStyle.
SelectionForeColor
= rowStyle.SelectionForeColor;
948
inheritedRowStyle.
SelectionForeColor
= rowsDefaultCellStyle.SelectionForeColor;
952
inheritedRowStyle.
SelectionForeColor
= alternatingRowsDefaultCellStyle.SelectionForeColor;
956
inheritedRowStyle.
SelectionForeColor
= dataGridViewStyle.SelectionForeColor;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (3)
505
inheritedCellStyleTmp.
SelectionForeColor
= cellStyle.SelectionForeColor;
509
inheritedCellStyleTmp.
SelectionForeColor
= rowHeadersStyle.SelectionForeColor;
513
inheritedCellStyleTmp.
SelectionForeColor
= dataGridViewStyle.SelectionForeColor;
68 references to SelectionForeColor
System.Windows.Forms (68)
winforms\Managed\System\WinForms\DataGridView.cs (2)
2507
this.defaultCellStyle.
SelectionForeColor
== Color.Empty ||
2527
if (this.defaultCellStyle.
SelectionForeColor
== Color.Empty)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
720
SolidBrush foreBrush = this.DataGridView.GetCachedBrush(cellSelected ? cellStyle.
SelectionForeColor
: cellStyle.ForeColor);
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (1)
236
!defaultCellStyle.
SelectionForeColor
.IsEmpty ||
winforms\Managed\System\WinForms\DataGridViewCell.cs (12)
2291
if (cellStyle != null && !cellStyle.
SelectionForeColor
.IsEmpty)
2293
inheritedCellStyleTmp.SelectionForeColor = cellStyle.
SelectionForeColor
;
2295
else if (rowStyle != null && !rowStyle.
SelectionForeColor
.IsEmpty)
2297
inheritedCellStyleTmp.SelectionForeColor = rowStyle.
SelectionForeColor
;
2299
else if (!this.DataGridView.RowsDefaultCellStyle.
SelectionForeColor
.IsEmpty &&
2300
(rowIndex % 2 == 0 || this.DataGridView.AlternatingRowsDefaultCellStyle.
SelectionForeColor
.IsEmpty))
2302
inheritedCellStyleTmp.SelectionForeColor = this.DataGridView.RowsDefaultCellStyle.
SelectionForeColor
;
2304
else if (rowIndex % 2 == 1 && !this.DataGridView.AlternatingRowsDefaultCellStyle.
SelectionForeColor
.IsEmpty)
2306
inheritedCellStyleTmp.SelectionForeColor = this.DataGridView.AlternatingRowsDefaultCellStyle.
SelectionForeColor
;
2308
else if (columnStyle != null && !columnStyle.
SelectionForeColor
.IsEmpty)
2310
inheritedCellStyleTmp.SelectionForeColor = columnStyle.
SelectionForeColor
;
2314
inheritedCellStyleTmp.SelectionForeColor = dataGridViewStyle.
SelectionForeColor
;
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (10)
69
this.SelectionForeColor = dataGridViewCellStyle.
SelectionForeColor
;
520
Color c = this.
SelectionForeColor
;
525
if (!c.Equals(this.
SelectionForeColor
))
618
if (!dataGridViewCellStyle.
SelectionForeColor
.IsEmpty)
620
this.SelectionForeColor = dataGridViewCellStyle.
SelectionForeColor
;
698
dgvcs.
SelectionForeColor
!= this.
SelectionForeColor
);
724
this.
SelectionForeColor
.GetHashCode(),
844
if (this.
SelectionForeColor
!= Color.Empty)
850
sb.Append(" SelectionForeColor=" + this.
SelectionForeColor
.ToString());
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
1371
foreBrush = this.DataGridView.GetCachedBrush(cellSelected ? cellStyle.
SelectionForeColor
: cellStyle.ForeColor);
winforms\Managed\System\WinForms\DataGridViewCheckBoxColumn.cs (1)
341
!defaultCellStyle.
SelectionForeColor
.IsEmpty ||
winforms\Managed\System\WinForms\DataGridViewColumn.cs (4)
317
!defaultCellStyle.
SelectionForeColor
.IsEmpty ||
663
if (columnStyle != null && !columnStyle.
SelectionForeColor
.IsEmpty)
665
inheritedCellStyleTmp.SelectionForeColor = columnStyle.
SelectionForeColor
;
669
inheritedCellStyleTmp.SelectionForeColor = dataGridViewStyle.
SelectionForeColor
;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (6)
377
if (cellStyle != null && !cellStyle.
SelectionForeColor
.IsEmpty)
379
inheritedCellStyleTmp.SelectionForeColor = cellStyle.
SelectionForeColor
;
381
else if (!columnHeadersStyle.
SelectionForeColor
.IsEmpty)
383
inheritedCellStyleTmp.SelectionForeColor = columnHeadersStyle.
SelectionForeColor
;
387
inheritedCellStyleTmp.SelectionForeColor = dataGridViewStyle.
SelectionForeColor
;
937
textColor = cellSelected ? cellStyle.
SelectionForeColor
: cellStyle.ForeColor;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
2614
textColor = cellSelected ? cellStyle.
SelectionForeColor
: cellStyle.ForeColor;
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (1)
333
!defaultCellStyle.
SelectionForeColor
.IsEmpty ||
winforms\Managed\System\WinForms\DataGridViewMethods.cs (5)
2880
if (cellStyle != null && !cellStyle.
SelectionForeColor
.IsEmpty)
2882
inheritedCellStyle.SelectionForeColor = cellStyle.
SelectionForeColor
;
2884
else if (!columnHeadersStyle.
SelectionForeColor
.IsEmpty)
2886
inheritedCellStyle.SelectionForeColor = columnHeadersStyle.
SelectionForeColor
;
2890
inheritedCellStyle.SelectionForeColor = dataGridViewStyle.
SelectionForeColor
;
winforms\Managed\System\WinForms\DataGridViewRow.cs (13)
736
if (cellStyle != null && !cellStyle.
SelectionForeColor
.IsEmpty)
738
inheritedCellStyle.SelectionForeColor = cellStyle.
SelectionForeColor
;
740
else if (!rowHeadersStyle.
SelectionForeColor
.IsEmpty)
742
inheritedCellStyle.SelectionForeColor = rowHeadersStyle.
SelectionForeColor
;
746
inheritedCellStyle.SelectionForeColor = dataGridViewStyle.
SelectionForeColor
;
942
if (rowStyle != null && !rowStyle.
SelectionForeColor
.IsEmpty)
944
inheritedRowStyle.SelectionForeColor = rowStyle.
SelectionForeColor
;
946
else if (!rowsDefaultCellStyle.
SelectionForeColor
.IsEmpty && (rowIndex % 2 == 0 || alternatingRowsDefaultCellStyle.
SelectionForeColor
.IsEmpty))
948
inheritedRowStyle.SelectionForeColor = rowsDefaultCellStyle.
SelectionForeColor
;
950
else if (rowIndex % 2 == 1 && !alternatingRowsDefaultCellStyle.
SelectionForeColor
.IsEmpty)
952
inheritedRowStyle.SelectionForeColor = alternatingRowsDefaultCellStyle.
SelectionForeColor
;
956
inheritedRowStyle.SelectionForeColor = dataGridViewStyle.
SelectionForeColor
;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (8)
503
if (cellStyle != null && !cellStyle.
SelectionForeColor
.IsEmpty)
505
inheritedCellStyleTmp.SelectionForeColor = cellStyle.
SelectionForeColor
;
507
else if (!rowHeadersStyle.
SelectionForeColor
.IsEmpty)
509
inheritedCellStyleTmp.SelectionForeColor = rowHeadersStyle.
SelectionForeColor
;
513
inheritedCellStyleTmp.SelectionForeColor = dataGridViewStyle.
SelectionForeColor
;
951
iconColor = cellSelected ? cellStyle.
SelectionForeColor
: cellStyle.ForeColor;
1005
textColor = cellSelected ? cellStyle.
SelectionForeColor
: cellStyle.ForeColor;
1099
iconColor = cellSelected ? cellStyle.
SelectionForeColor
: cellStyle.ForeColor;
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
774
cellSelected ? cellStyle.
SelectionForeColor
: cellStyle.ForeColor,
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
351
textColor = cellSelected ? cellStyle.
SelectionForeColor
: cellStyle.ForeColor;