3 writes to RowsDefaultCellStyle
System.Windows.Forms.Tests (3)
System\Windows\Forms\DataGridViewRowTests.cs (1)
2158
control.
RowsDefaultCellStyle
= rowsDefaultCellStyle;
System\Windows\Forms\DataGridViewTests.cs (2)
3369
_dataGridView.
RowsDefaultCellStyle
= new() { BackColor = Color.Red };
3373
_dataGridView.
RowsDefaultCellStyle
= new();
30 references to RowsDefaultCellStyle
System.Windows.Forms (30)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
3500
DataGridViewCellStyle cs =
RowsDefaultCellStyle
;
3505
DataGridViewCellStyleDifferences dgvcsc = cs.GetDifferencesFrom(
RowsDefaultCellStyle
);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
28161
return !
RowsDefaultCellStyle
.Equals(defaultStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (26)
1938
else if (!DataGridView.
RowsDefaultCellStyle
.BackColor.IsEmpty &&
1941
inheritedCellStyleTmp.BackColor = DataGridView.
RowsDefaultCellStyle
.BackColor;
1964
else if (!DataGridView.
RowsDefaultCellStyle
.ForeColor.IsEmpty &&
1967
inheritedCellStyleTmp.ForeColor = DataGridView.
RowsDefaultCellStyle
.ForeColor;
1990
else if (!DataGridView.
RowsDefaultCellStyle
.SelectionBackColor.IsEmpty &&
1993
inheritedCellStyleTmp.SelectionBackColor = DataGridView.
RowsDefaultCellStyle
.SelectionBackColor;
2016
else if (!DataGridView.
RowsDefaultCellStyle
.SelectionForeColor.IsEmpty &&
2019
inheritedCellStyleTmp.SelectionForeColor = DataGridView.
RowsDefaultCellStyle
.SelectionForeColor;
2043
else if (DataGridView.
RowsDefaultCellStyle
.Font is not null &&
2046
inheritedCellStyleTmp.Font = DataGridView.
RowsDefaultCellStyle
.Font;
2069
else if (!DataGridView.
RowsDefaultCellStyle
.IsNullValueDefault &&
2072
inheritedCellStyleTmp.NullValue = DataGridView.
RowsDefaultCellStyle
.NullValue;
2096
else if (!DataGridView.
RowsDefaultCellStyle
.IsDataSourceNullValueDefault &&
2099
inheritedCellStyleTmp.DataSourceNullValue = DataGridView.
RowsDefaultCellStyle
.DataSourceNullValue;
2123
else if (DataGridView.
RowsDefaultCellStyle
.Format.Length != 0 &&
2126
inheritedCellStyleTmp.Format = DataGridView.
RowsDefaultCellStyle
.Format;
2149
else if (!DataGridView.
RowsDefaultCellStyle
.IsFormatProviderDefault &&
2152
inheritedCellStyleTmp.FormatProvider = DataGridView.
RowsDefaultCellStyle
.FormatProvider;
2175
else if (DataGridView.
RowsDefaultCellStyle
.Alignment != DataGridViewContentAlignment.NotSet &&
2178
inheritedCellStyleTmp.AlignmentInternal = DataGridView.
RowsDefaultCellStyle
.Alignment;
2202
else if (DataGridView.
RowsDefaultCellStyle
.WrapMode != DataGridViewTriState.NotSet &&
2205
inheritedCellStyleTmp.WrapModeInternal = DataGridView.
RowsDefaultCellStyle
.WrapMode;
2229
else if (DataGridView.
RowsDefaultCellStyle
.Tag is not null &&
2232
inheritedCellStyleTmp.Tag = DataGridView.
RowsDefaultCellStyle
.Tag;
2255
else if (DataGridView.
RowsDefaultCellStyle
.Padding != Padding.Empty &&
2258
inheritedCellStyleTmp.PaddingInternal = DataGridView.
RowsDefaultCellStyle
.Padding;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
807
DataGridViewCellStyle rowsDefaultCellStyle = DataGridView.
RowsDefaultCellStyle
;