64 references to DataGridViewCellStyleScopes
System.Windows.Forms (64)
winforms\Managed\System\WinForms\DataGridView.cs (17)
971
this.alternatingRowsDefaultCellStyle.AddScope(this,
DataGridViewCellStyleScopes
.AlternatingRows);
978
cs.RemoveScope(
DataGridViewCellStyleScopes
.AlternatingRows);
982
this.alternatingRowsDefaultCellStyle.AddScope(this,
DataGridViewCellStyleScopes
.AlternatingRows);
1929
cs.RemoveScope(
DataGridViewCellStyleScopes
.ColumnHeaders);
1933
this.columnHeadersDefaultCellStyle.AddScope(this,
DataGridViewCellStyleScopes
.ColumnHeaders);
1955
defaultStyle.AddScope(this,
DataGridViewCellStyleScopes
.ColumnHeaders);
2513
defaultCellStyleTmp.Scope =
DataGridViewCellStyleScopes
.None;
2544
defaultCellStyleTmp.AddScope(this,
DataGridViewCellStyleScopes
.DataGridView);
2555
cs.RemoveScope(
DataGridViewCellStyleScopes
.DataGridView);
2559
this.defaultCellStyle.AddScope(this,
DataGridViewCellStyleScopes
.DataGridView);
2582
defaultCellStyle.AddScope(this,
DataGridViewCellStyleScopes
.DataGridView);
2644
defaultStyle.AddScope(this,
DataGridViewCellStyleScopes
.RowHeaders);
4217
cs.RemoveScope(
DataGridViewCellStyleScopes
.RowHeaders);
4221
this.rowHeadersDefaultCellStyle.AddScope(this,
DataGridViewCellStyleScopes
.RowHeaders);
4461
this.rowsDefaultCellStyle.AddScope(this,
DataGridViewCellStyleScopes
.Rows);
4468
cs.RemoveScope(
DataGridViewCellStyleScopes
.Rows);
4472
this.rowsDefaultCellStyle.AddScope(this,
DataGridViewCellStyleScopes
.Rows);
winforms\Managed\System\WinForms\DataGridViewBand.cs (10)
132
this.bandIsRow ?
DataGridViewCellStyleScopes
.Row :
DataGridViewCellStyleScopes
.Column);
143
dgvcs.RemoveScope(this.bandIsRow ?
DataGridViewCellStyleScopes
.Row :
DataGridViewCellStyleScopes
.Column);
150
this.bandIsRow ?
DataGridViewCellStyleScopes
.Row :
DataGridViewCellStyleScopes
.Column);
1023
this.DefaultCellStyle.RemoveScope(this.bandIsRow ?
DataGridViewCellStyleScopes
.Row :
DataGridViewCellStyleScopes
.Column);
1028
this.bandIsRow ?
DataGridViewCellStyleScopes
.Row :
DataGridViewCellStyleScopes
.Column);
winforms\Managed\System\WinForms\DataGridViewCell.cs (5)
806
dgvcs.AddScope(this.DataGridView,
DataGridViewCellStyleScopes
.Cell);
817
dgvcs.RemoveScope(
DataGridViewCellStyleScopes
.Cell);
823
value.AddScope(this.DataGridView,
DataGridViewCellStyleScopes
.Cell);
3479
this.Style.RemoveScope(
DataGridViewCellStyleScopes
.Cell);
3483
this.Style.AddScope(this.DataGridView,
DataGridViewCellStyleScopes
.Cell);
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (8)
41
private
DataGridViewCellStyleScopes
scope;
54
this.scope =
DataGridViewCellStyleScopes
.None;
65
this.scope =
DataGridViewCellStyleScopes
.None;
472
internal
DataGridViewCellStyleScopes
Scope
593
internal void AddScope(DataGridView dataGridView,
DataGridViewCellStyleScopes
scope)
733
if (this.dataGridView != null && this.scope !=
DataGridViewCellStyleScopes
.None)
770
internal void RemoveScope(
DataGridViewCellStyleScopes
scope)
773
if (this.scope ==
DataGridViewCellStyleScopes
.None)
winforms\Managed\System\WinForms\DataGridViewCellStyleContentChangedEventArgs.cs (1)
31
public
DataGridViewCellStyleScopes
CellStyleScope
winforms\Managed\System\WinForms\DataGridViewMethods.cs (23)
13237
if ((dataGridViewCellStyle.Scope &
DataGridViewCellStyleScopes
.DataGridView) != 0 && this.dataGridViewState1[DATAGRIDVIEWSTATE1_ambientFont])
13241
if ((dataGridViewCellStyle.Scope &
DataGridViewCellStyleScopes
.ColumnHeaders) != 0 && this.dataGridViewState1[DATAGRIDVIEWSTATE1_ambientColumnHeadersFont])
13245
if ((dataGridViewCellStyle.Scope &
DataGridViewCellStyleScopes
.RowHeaders) != 0 && this.dataGridViewState1[DATAGRIDVIEWSTATE1_ambientRowHeadersFont])
13252
if ((dataGridViewCellStyle.Scope &
DataGridViewCellStyleScopes
.DataGridView) != 0 && this.dataGridViewState1[DATAGRIDVIEWSTATE1_ambientForeColor])
13271
if ((e.CellStyleScope &
DataGridViewCellStyleScopes
.Cell) ==
DataGridViewCellStyleScopes
.Cell && (e.CellStyleScope &
DataGridViewCellStyleScopes
.DataGridView) == 0)
13285
if ((e.CellStyleScope &
DataGridViewCellStyleScopes
.Column) ==
DataGridViewCellStyleScopes
.Column)
13298
if ((e.CellStyleScope &
DataGridViewCellStyleScopes
.Row) ==
DataGridViewCellStyleScopes
.Row && (e.CellStyleScope &
DataGridViewCellStyleScopes
.Rows) == 0 && (e.CellStyleScope &
DataGridViewCellStyleScopes
.AlternatingRows) == 0)
13323
if ((e.CellStyleScope &
DataGridViewCellStyleScopes
.DataGridView) ==
DataGridViewCellStyleScopes
.DataGridView)
13334
if ((e.CellStyleScope &
DataGridViewCellStyleScopes
.ColumnHeaders) ==
DataGridViewCellStyleScopes
.ColumnHeaders)
13345
if ((e.CellStyleScope &
DataGridViewCellStyleScopes
.RowHeaders) ==
DataGridViewCellStyleScopes
.RowHeaders)
13356
if ((e.CellStyleScope &
DataGridViewCellStyleScopes
.Rows) ==
DataGridViewCellStyleScopes
.Rows)
13367
if ((e.CellStyleScope &
DataGridViewCellStyleScopes
.AlternatingRows) ==
DataGridViewCellStyleScopes
.AlternatingRows)