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)
3507
DataGridViewCellStyle cs =
RowsDefaultCellStyle
;
3512
DataGridViewCellStyleDifferences dgvcsc = cs.GetDifferencesFrom(
RowsDefaultCellStyle
);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
28153
return !
RowsDefaultCellStyle
.Equals(defaultStyle);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (26)
1927
else if (!DataGridView.
RowsDefaultCellStyle
.BackColor.IsEmpty &&
1930
inheritedCellStyleTmp.BackColor = DataGridView.
RowsDefaultCellStyle
.BackColor;
1953
else if (!DataGridView.
RowsDefaultCellStyle
.ForeColor.IsEmpty &&
1956
inheritedCellStyleTmp.ForeColor = DataGridView.
RowsDefaultCellStyle
.ForeColor;
1979
else if (!DataGridView.
RowsDefaultCellStyle
.SelectionBackColor.IsEmpty &&
1982
inheritedCellStyleTmp.SelectionBackColor = DataGridView.
RowsDefaultCellStyle
.SelectionBackColor;
2005
else if (!DataGridView.
RowsDefaultCellStyle
.SelectionForeColor.IsEmpty &&
2008
inheritedCellStyleTmp.SelectionForeColor = DataGridView.
RowsDefaultCellStyle
.SelectionForeColor;
2032
else if (DataGridView.
RowsDefaultCellStyle
.Font is not null &&
2035
inheritedCellStyleTmp.Font = DataGridView.
RowsDefaultCellStyle
.Font;
2058
else if (!DataGridView.
RowsDefaultCellStyle
.IsNullValueDefault &&
2061
inheritedCellStyleTmp.NullValue = DataGridView.
RowsDefaultCellStyle
.NullValue;
2085
else if (!DataGridView.
RowsDefaultCellStyle
.IsDataSourceNullValueDefault &&
2088
inheritedCellStyleTmp.DataSourceNullValue = DataGridView.
RowsDefaultCellStyle
.DataSourceNullValue;
2112
else if (DataGridView.
RowsDefaultCellStyle
.Format.Length != 0 &&
2115
inheritedCellStyleTmp.Format = DataGridView.
RowsDefaultCellStyle
.Format;
2138
else if (!DataGridView.
RowsDefaultCellStyle
.IsFormatProviderDefault &&
2141
inheritedCellStyleTmp.FormatProvider = DataGridView.
RowsDefaultCellStyle
.FormatProvider;
2164
else if (DataGridView.
RowsDefaultCellStyle
.Alignment != DataGridViewContentAlignment.NotSet &&
2167
inheritedCellStyleTmp.AlignmentInternal = DataGridView.
RowsDefaultCellStyle
.Alignment;
2191
else if (DataGridView.
RowsDefaultCellStyle
.WrapMode != DataGridViewTriState.NotSet &&
2194
inheritedCellStyleTmp.WrapModeInternal = DataGridView.
RowsDefaultCellStyle
.WrapMode;
2218
else if (DataGridView.
RowsDefaultCellStyle
.Tag is not null &&
2221
inheritedCellStyleTmp.Tag = DataGridView.
RowsDefaultCellStyle
.Tag;
2244
else if (DataGridView.
RowsDefaultCellStyle
.Padding != Padding.Empty &&
2247
inheritedCellStyleTmp.PaddingInternal = DataGridView.
RowsDefaultCellStyle
.Padding;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
807
DataGridViewCellStyle rowsDefaultCellStyle = DataGridView.
RowsDefaultCellStyle
;