33 references to IsFormatProviderDefault
System.Windows.Forms (21)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
2900
if (cellStyle is not null && !cellStyle.
IsFormatProviderDefault
)
2904
else if (!columnHeadersStyle.
IsFormatProviderDefault
)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
2141
if (cellStyle is not null && !cellStyle.
IsFormatProviderDefault
)
2145
else if (rowStyle is not null && !rowStyle.
IsFormatProviderDefault
)
2149
else if (!DataGridView.RowsDefaultCellStyle.
IsFormatProviderDefault
&&
2150
(rowIndex % 2 == 0 || DataGridView.AlternatingRowsDefaultCellStyle.
IsFormatProviderDefault
))
2154
else if (rowIndex % 2 == 1 && !DataGridView.AlternatingRowsDefaultCellStyle.
IsFormatProviderDefault
)
2158
else if (columnStyle is not null && !columnStyle.
IsFormatProviderDefault
)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
53
if (!dataGridViewCellStyle.
IsFormatProviderDefault
)
418
if (!dataGridViewCellStyle.
IsFormatProviderDefault
)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
517
if (columnStyle is not null && !columnStyle.
IsFormatProviderDefault
)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (2)
406
if (cellStyle is not null && !cellStyle.
IsFormatProviderDefault
)
410
else if (!columnHeadersStyle.
IsFormatProviderDefault
)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (6)
719
if (cellStyle is not null && !cellStyle.
IsFormatProviderDefault
)
723
else if (!rowHeadersStyle.
IsFormatProviderDefault
)
952
if (rowStyle is not null && !rowStyle.
IsFormatProviderDefault
)
956
else if (!rowsDefaultCellStyle.
IsFormatProviderDefault
&& (rowIndex % 2 == 0 || alternatingRowsDefaultCellStyle.
IsFormatProviderDefault
))
960
else if (rowIndex % 2 == 1 && !alternatingRowsDefaultCellStyle.
IsFormatProviderDefault
)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (2)
431
if (cellStyle is not null && !cellStyle.
IsFormatProviderDefault
)
435
else if (!rowHeadersStyle.
IsFormatProviderDefault
)
System.Windows.Forms.Tests (12)
System\Windows\Forms\DataGridViewCellStyleTests.cs (12)
28
Assert.True(style.
IsFormatProviderDefault
);
69
Assert.False(style.
IsFormatProviderDefault
);
94
Assert.True(style.
IsFormatProviderDefault
);
361
Assert.Equal(expectedIsFormatProviderDefault, style.
IsFormatProviderDefault
);
366
Assert.Equal(expectedIsFormatProviderDefault, style.
IsFormatProviderDefault
);
378
Assert.True(style.
IsFormatProviderDefault
);
647
Assert.False(style.
IsFormatProviderDefault
);
689
Assert.False(style.
IsFormatProviderDefault
);
737
Assert.False(style.
IsFormatProviderDefault
);
762
Assert.True(style.
IsFormatProviderDefault
);
803
Assert.False(style.
IsFormatProviderDefault
);
828
Assert.True(style.
IsFormatProviderDefault
);