2 writes to defaultCellStyle
System.Windows.Forms (2)
winforms\Managed\System\WinForms\DataGridView.cs (2)
2501
this.
defaultCellStyle
= this.DefaultDefaultCellStyle;
2556
this.
defaultCellStyle
= value;
19 references to defaultCellStyle
System.Windows.Forms (19)
winforms\Managed\System\WinForms\DataGridView.cs (19)
2499
if (this.
defaultCellStyle
== null)
2502
return this.
defaultCellStyle
;
2504
else if (this.
defaultCellStyle
.BackColor == Color.Empty ||
2505
this.
defaultCellStyle
.ForeColor == Color.Empty ||
2506
this.
defaultCellStyle
.SelectionBackColor == Color.Empty ||
2507
this.
defaultCellStyle
.SelectionForeColor == Color.Empty ||
2508
this.
defaultCellStyle
.Font == null ||
2509
this.
defaultCellStyle
.Alignment == DataGridViewContentAlignment.NotSet ||
2510
this.
defaultCellStyle
.WrapMode == DataGridViewTriState.NotSet)
2512
DataGridViewCellStyle defaultCellStyleTmp = new DataGridViewCellStyle(this.
defaultCellStyle
);
2514
if (this.
defaultCellStyle
.BackColor == Color.Empty)
2518
if (this.
defaultCellStyle
.ForeColor == Color.Empty)
2523
if (this.
defaultCellStyle
.SelectionBackColor == Color.Empty)
2527
if (this.
defaultCellStyle
.SelectionForeColor == Color.Empty)
2531
if (this.
defaultCellStyle
.Font == null)
2536
if (this.
defaultCellStyle
.Alignment == DataGridViewContentAlignment.NotSet)
2540
if (this.
defaultCellStyle
.WrapMode == DataGridViewTriState.NotSet)
2549
return this.
defaultCellStyle
;
2559
this.
defaultCellStyle
.AddScope(this, DataGridViewCellStyleScopes.DataGridView);