2 writes to _defaultCellStyle
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
1975
_defaultCellStyle
= DefaultDefaultCellStyle;
2039
_defaultCellStyle
= value;
19 references to _defaultCellStyle
System.Windows.Forms (19)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (19)
1973
if (
_defaultCellStyle
is null)
1976
return
_defaultCellStyle
;
1978
else if (
_defaultCellStyle
.BackColor == Color.Empty
1979
||
_defaultCellStyle
.ForeColor == Color.Empty
1980
||
_defaultCellStyle
.SelectionBackColor == Color.Empty
1981
||
_defaultCellStyle
.SelectionForeColor == Color.Empty
1982
||
_defaultCellStyle
.Font is null
1983
||
_defaultCellStyle
.Alignment == DataGridViewContentAlignment.NotSet
1984
||
_defaultCellStyle
.WrapMode == DataGridViewTriState.NotSet)
1986
DataGridViewCellStyle defaultCellStyleTmp = new(
_defaultCellStyle
)
1990
if (
_defaultCellStyle
.BackColor == Color.Empty)
1995
if (
_defaultCellStyle
.ForeColor == Color.Empty)
2001
if (
_defaultCellStyle
.SelectionBackColor == Color.Empty)
2006
if (
_defaultCellStyle
.SelectionForeColor == Color.Empty)
2011
if (
_defaultCellStyle
.Font is null)
2017
if (
_defaultCellStyle
.Alignment == DataGridViewContentAlignment.NotSet)
2022
if (
_defaultCellStyle
.WrapMode == DataGridViewTriState.NotSet)
2032
return
_defaultCellStyle
;
2040
_defaultCellStyle
?.AddScope(this, DataGridViewCellStyleScopes.DataGridView);