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)
1973if (_defaultCellStyle is null) 1976return _defaultCellStyle; 1978else 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) 1986DataGridViewCellStyle defaultCellStyleTmp = new(_defaultCellStyle) 1990if (_defaultCellStyle.BackColor == Color.Empty) 1995if (_defaultCellStyle.ForeColor == Color.Empty) 2001if (_defaultCellStyle.SelectionBackColor == Color.Empty) 2006if (_defaultCellStyle.SelectionForeColor == Color.Empty) 2011if (_defaultCellStyle.Font is null) 2017if (_defaultCellStyle.Alignment == DataGridViewContentAlignment.NotSet) 2022if (_defaultCellStyle.WrapMode == DataGridViewTriState.NotSet) 2032return _defaultCellStyle; 2040_defaultCellStyle?.AddScope(this, DataGridViewCellStyleScopes.DataGridView);