63 references to DataGridViewCellStyleScopes
System.Windows.Forms (63)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (17)
799_alternatingRowsDefaultCellStyle.AddScope(this, DataGridViewCellStyleScopes.AlternatingRows); 807cs.RemoveScope(DataGridViewCellStyleScopes.AlternatingRows); 809_alternatingRowsDefaultCellStyle?.AddScope(this, DataGridViewCellStyleScopes.AlternatingRows); 1525cs.RemoveScope(DataGridViewCellStyleScopes.ColumnHeaders); 1527_columnHeadersDefaultCellStyle?.AddScope(this, DataGridViewCellStyleScopes.ColumnHeaders); 1555defaultStyle.AddScope(this, DataGridViewCellStyleScopes.ColumnHeaders); 1988Scope = DataGridViewCellStyleScopes.None 2027defaultCellStyleTmp.AddScope(this, DataGridViewCellStyleScopes.DataGridView); 2038cs.RemoveScope(DataGridViewCellStyleScopes.DataGridView); 2040_defaultCellStyle?.AddScope(this, DataGridViewCellStyleScopes.DataGridView); 2068defaultCellStyle.AddScope(this, DataGridViewCellStyleScopes.DataGridView); 2105defaultStyle.AddScope(this, DataGridViewCellStyleScopes.RowHeaders); 3312cs.RemoveScope(DataGridViewCellStyleScopes.RowHeaders); 3314_rowHeadersDefaultCellStyle?.AddScope(this, DataGridViewCellStyleScopes.RowHeaders); 3500_rowsDefaultCellStyle.AddScope(this, DataGridViewCellStyleScopes.Rows); 3508cs.RemoveScope(DataGridViewCellStyleScopes.Rows); 3510_rowsDefaultCellStyle?.AddScope(this, DataGridViewCellStyleScopes.Rows);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (23)
12859if ((dataGridViewCellStyle.Scope & DataGridViewCellStyleScopes.DataGridView) != 0 && _dataGridViewState1[State1_AmbientFont]) 12864if ((dataGridViewCellStyle.Scope & DataGridViewCellStyleScopes.ColumnHeaders) != 0 && _dataGridViewState1[State1_AmbientColumnHeadersFont]) 12869if ((dataGridViewCellStyle.Scope & DataGridViewCellStyleScopes.RowHeaders) != 0 && _dataGridViewState1[State1_AmbientRowHeadersFont]) 12877if ((dataGridViewCellStyle.Scope & DataGridViewCellStyleScopes.DataGridView) != 0 && _dataGridViewState1[State1_AmbientForeColor]) 12898if ((e.CellStyleScope & DataGridViewCellStyleScopes.Cell) == DataGridViewCellStyleScopes.Cell && (e.CellStyleScope & DataGridViewCellStyleScopes.DataGridView) == 0) 12912if ((e.CellStyleScope & DataGridViewCellStyleScopes.Column) == DataGridViewCellStyleScopes.Column) 12925if ((e.CellStyleScope & DataGridViewCellStyleScopes.Row) == DataGridViewCellStyleScopes.Row && (e.CellStyleScope & DataGridViewCellStyleScopes.Rows) == 0 && (e.CellStyleScope & DataGridViewCellStyleScopes.AlternatingRows) == 0) 12952if ((e.CellStyleScope & DataGridViewCellStyleScopes.DataGridView) == DataGridViewCellStyleScopes.DataGridView) 12964if ((e.CellStyleScope & DataGridViewCellStyleScopes.ColumnHeaders) == DataGridViewCellStyleScopes.ColumnHeaders) 12976if ((e.CellStyleScope & DataGridViewCellStyleScopes.RowHeaders) == DataGridViewCellStyleScopes.RowHeaders) 12988if ((e.CellStyleScope & DataGridViewCellStyleScopes.Rows) == DataGridViewCellStyleScopes.Rows) 13000if ((e.CellStyleScope & DataGridViewCellStyleScopes.AlternatingRows) == DataGridViewCellStyleScopes.AlternatingRows)
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (10)
80style.AddScope(DataGridView, IsRow ? DataGridViewCellStyleScopes.Row : DataGridViewCellStyleScopes.Column); 92style.RemoveScope(IsRow ? DataGridViewCellStyleScopes.Row : DataGridViewCellStyleScopes.Column); 95value?.AddScope(DataGridView, IsRow ? DataGridViewCellStyleScopes.Row : DataGridViewCellStyleScopes.Column); 833DefaultCellStyle.RemoveScope(IsRow ? DataGridViewCellStyleScopes.Row : DataGridViewCellStyleScopes.Column); 837DefaultCellStyle.AddScope(DataGridView, IsRow ? DataGridViewCellStyleScopes.Row : DataGridViewCellStyleScopes.Column);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (5)
617dataGridViewCellStyle.AddScope(DataGridView, DataGridViewCellStyleScopes.Cell); 629dataGridViewCellStyle.RemoveScope(DataGridViewCellStyleScopes.Cell); 632value?.AddScope(DataGridView, DataGridViewCellStyleScopes.Cell); 3046Style.RemoveScope(DataGridViewCellStyleScopes.Cell); 3050Style.AddScope(DataGridView, DataGridViewCellStyleScopes.Cell);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (7)
36Scope = DataGridViewCellStyleScopes.None; 44Scope = DataGridViewCellStyleScopes.None; 304internal DataGridViewCellStyleScopes Scope { get; set; } 368internal void AddScope(DataGridView? dataGridView, DataGridViewCellStyleScopes scope) 504if (_dataGridView is not null && Scope != DataGridViewCellStyleScopes.None) 510internal void RemoveScope(DataGridViewCellStyleScopes scope) 513if (Scope == DataGridViewCellStyleScopes.None)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyleContentChangedEventArgs.cs (1)
16public DataGridViewCellStyleScopes CellStyleScope => CellStyle.Scope;