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)
1966if (_defaultCellStyle is null) 1969return _defaultCellStyle; 1971else 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) 1979DataGridViewCellStyle defaultCellStyleTmp = new(_defaultCellStyle) 1983if (_defaultCellStyle.BackColor == Color.Empty) 1988if (_defaultCellStyle.ForeColor == Color.Empty) 1994if (_defaultCellStyle.SelectionBackColor == Color.Empty) 1999if (_defaultCellStyle.SelectionForeColor == Color.Empty) 2004if (_defaultCellStyle.Font is null) 2010if (_defaultCellStyle.Alignment == DataGridViewContentAlignment.NotSet) 2015if (_defaultCellStyle.WrapMode == DataGridViewTriState.NotSet) 2025return _defaultCellStyle; 2033_defaultCellStyle?.AddScope(this, DataGridViewCellStyleScopes.DataGridView);