2 writes to _defaultCellStyle
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
1976_defaultCellStyle = DefaultDefaultCellStyle; 2040_defaultCellStyle = value;
19 references to _defaultCellStyle
System.Windows.Forms (19)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (19)
1974if (_defaultCellStyle is null) 1977return _defaultCellStyle; 1979else if (_defaultCellStyle.BackColor == Color.Empty 1980|| _defaultCellStyle.ForeColor == Color.Empty 1981|| _defaultCellStyle.SelectionBackColor == Color.Empty 1982|| _defaultCellStyle.SelectionForeColor == Color.Empty 1983|| _defaultCellStyle.Font is null 1984|| _defaultCellStyle.Alignment == DataGridViewContentAlignment.NotSet 1985|| _defaultCellStyle.WrapMode == DataGridViewTriState.NotSet) 1987DataGridViewCellStyle defaultCellStyleTmp = new(_defaultCellStyle) 1991if (_defaultCellStyle.BackColor == Color.Empty) 1996if (_defaultCellStyle.ForeColor == Color.Empty) 2002if (_defaultCellStyle.SelectionBackColor == Color.Empty) 2007if (_defaultCellStyle.SelectionForeColor == Color.Empty) 2012if (_defaultCellStyle.Font is null) 2018if (_defaultCellStyle.Alignment == DataGridViewContentAlignment.NotSet) 2023if (_defaultCellStyle.WrapMode == DataGridViewTriState.NotSet) 2033return _defaultCellStyle; 2041_defaultCellStyle?.AddScope(this, DataGridViewCellStyleScopes.DataGridView);