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