2 writes to _defaultCellStyle
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
1968
_defaultCellStyle
= DefaultDefaultCellStyle;
2032
_defaultCellStyle
= value;
19 references to _defaultCellStyle
System.Windows.Forms (19)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (19)
1966
if (
_defaultCellStyle
is null)
1969
return
_defaultCellStyle
;
1971
else if (
_defaultCellStyle
.BackColor == Color.Empty
1972
||
_defaultCellStyle
.ForeColor == Color.Empty
1973
||
_defaultCellStyle
.SelectionBackColor == Color.Empty
1974
||
_defaultCellStyle
.SelectionForeColor == Color.Empty
1975
||
_defaultCellStyle
.Font is null
1976
||
_defaultCellStyle
.Alignment == DataGridViewContentAlignment.NotSet
1977
||
_defaultCellStyle
.WrapMode == DataGridViewTriState.NotSet)
1979
DataGridViewCellStyle defaultCellStyleTmp = new(
_defaultCellStyle
)
1983
if (
_defaultCellStyle
.BackColor == Color.Empty)
1988
if (
_defaultCellStyle
.ForeColor == Color.Empty)
1994
if (
_defaultCellStyle
.SelectionBackColor == Color.Empty)
1999
if (
_defaultCellStyle
.SelectionForeColor == Color.Empty)
2004
if (
_defaultCellStyle
.Font is null)
2010
if (
_defaultCellStyle
.Alignment == DataGridViewContentAlignment.NotSet)
2015
if (
_defaultCellStyle
.WrapMode == DataGridViewTriState.NotSet)
2025
return
_defaultCellStyle
;
2033
_defaultCellStyle
?.AddScope(this, DataGridViewCellStyleScopes.DataGridView);