78 writes to NullValue
PresentationUI (2)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (2)
464
NullValue
= string.Empty,
472
NullValue
= false
System.Windows.Forms (32)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
2863
inheritedCellStyle.
NullValue
= cellStyle.NullValue;
2867
inheritedCellStyle.
NullValue
= columnHeadersStyle.NullValue;
2871
inheritedCellStyle.
NullValue
= dataGridViewStyle.NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
2063
inheritedCellStyleTmp.
NullValue
= cellStyle.NullValue;
2067
inheritedCellStyleTmp.
NullValue
= rowStyle.NullValue;
2072
inheritedCellStyleTmp.
NullValue
= DataGridView.RowsDefaultCellStyle.NullValue;
2077
inheritedCellStyleTmp.
NullValue
= DataGridView.AlternatingRowsDefaultCellStyle.NullValue;
2081
inheritedCellStyleTmp.
NullValue
= columnStyle.NullValue;
2085
inheritedCellStyleTmp.
NullValue
= dataGridViewStyle.NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
50
NullValue
= dataGridViewCellStyle.NullValue;
405
NullValue
= dataGridViewCellStyle.NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (3)
23
NullValue
= threeState ? CheckState.Indeterminate : false
229
DefaultCellStyle.
NullValue
= CheckState.Indeterminate;
233
DefaultCellStyle.
NullValue
= false;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
492
inheritedCellStyleTmp.
NullValue
= columnStyle.NullValue;
496
inheritedCellStyleTmp.
NullValue
= dataGridViewStyle.NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (3)
369
inheritedCellStyleTmp.
NullValue
= cellStyle.NullValue;
373
inheritedCellStyleTmp.
NullValue
= columnHeadersStyle.NullValue;
377
inheritedCellStyleTmp.
NullValue
= dataGridViewStyle.NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (3)
28
NullValue
= valuesAreIcons
225
DefaultCellStyle.
NullValue
= DataGridViewImageCell.ErrorIcon;
231
DefaultCellStyle.
NullValue
= DataGridViewImageCell.ErrorBitmap;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (7)
682
inheritedCellStyle.
NullValue
= cellStyle.NullValue;
686
inheritedCellStyle.
NullValue
= rowHeadersStyle.NullValue;
690
inheritedCellStyle.
NullValue
= dataGridViewStyle.NullValue;
901
inheritedRowStyle.
NullValue
= rowStyle.NullValue;
906
inheritedRowStyle.
NullValue
= rowsDefaultCellStyle.NullValue;
910
inheritedRowStyle.
NullValue
= alternatingRowsDefaultCellStyle.NullValue;
914
inheritedRowStyle.
NullValue
= dataGridViewStyle.NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
394
inheritedCellStyleTmp.
NullValue
= cellStyle.NullValue;
398
inheritedCellStyleTmp.
NullValue
= rowHeadersStyle.NullValue;
402
inheritedCellStyleTmp.
NullValue
= dataGridViewStyle.NullValue;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
422
destColumn.DefaultCellStyle.
NullValue
= srcNullValue;
System\Windows\Forms\Design\FormatStringDialog.cs (1)
271
_dgvCellStyle.
NullValue
= _formatControl1.NullValue;
System.Windows.Forms.Tests (42)
System\Windows\Forms\DataGridViewCellStyleTests.cs (30)
51
NullValue
= "null",
396
NullValue
= value
402
style.
NullValue
= value;
413
NullValue
= "oldValue"
415
style.
NullValue
= value;
420
style.
NullValue
= value;
431
NullValue
= null
433
style.
NullValue
= value;
438
style.
NullValue
= value;
449
NullValue
= value
451
style.
NullValue
= new AlwaysEqual();
462
NullValue
= value
464
style.
NullValue
= "value";
474
NullValue
= "value"
476
style.
NullValue
= string.Empty;
628
NullValue
= "null",
671
NullValue
= "null",
719
NullValue
= "null",
785
NullValue
= "null",
943
new DataGridViewCellStyle {
NullValue
= "null" },
944
new DataGridViewCellStyle {
NullValue
= "null" },
949
new DataGridViewCellStyle {
NullValue
= "null" },
950
new DataGridViewCellStyle {
NullValue
= "other" },
955
new DataGridViewCellStyle {
NullValue
= null },
956
new DataGridViewCellStyle {
NullValue
= null },
961
new DataGridViewCellStyle {
NullValue
= null },
962
new DataGridViewCellStyle {
NullValue
= "other" },
1087
new DataGridViewCellStyle {
NullValue
= "null" },
1092
new DataGridViewCellStyle {
NullValue
= null },
1133
NullValue
= "null",
System\Windows\Forms\DataGridViewCellTests.cs (10)
6096
yield return new object[] { typeof(string), typeof(string), "null", new DataGridViewCellStyle {
NullValue
= "null" }, null, null, null };
6097
yield return new object[] { typeof(object), typeof(string), "null", new DataGridViewCellStyle {
NullValue
= "null" }, null, null, null };
6098
yield return new object[] { typeof(object), typeof(string), "s", new DataGridViewCellStyle {
NullValue
= "null" }, null, null, "s" };
6099
yield return new object[] { typeof(object), typeof(string), "longer", new DataGridViewCellStyle {
NullValue
= "null" }, null, null, "longer" };
6100
yield return new object[] { typeof(object), typeof(string), "abcd", new DataGridViewCellStyle {
NullValue
= "null" }, null, null, "abcd" };
6101
yield return new object[] { typeof(object), typeof(string), "null", new DataGridViewCellStyle {
NullValue
= "null" }, null, null, null };
6102
yield return new object[] { typeof(int), typeof(int), 1, new DataGridViewCellStyle {
NullValue
= 1 }, null, null, DBNull.Value };
6103
yield return new object[] { typeof(int), typeof(int), 2, new DataGridViewCellStyle {
NullValue
= 1 }, null, null, 2 };
6104
yield return new object[] { typeof(string), typeof(string), "null", new DataGridViewCellStyle {
NullValue
= "null", DataSourceNullValue = "dbNull" }, null, null, "dbNull" };
6105
yield return new object[] { typeof(int), typeof(int), 1, new DataGridViewCellStyle {
NullValue
= 1, DataSourceNullValue = "dbNull" }, null, null, "dbNull" };
System\Windows\Forms\DataGridViewRowTests.cs (2)
2073
NullValue
= "null",
2089
NullValue
= "null2",
64 references to NullValue
System.Windows.Forms (43)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
2863
inheritedCellStyle.NullValue = cellStyle.
NullValue
;
2867
inheritedCellStyle.NullValue = columnHeadersStyle.
NullValue
;
2871
inheritedCellStyle.NullValue = dataGridViewStyle.
NullValue
;
25293
object? nullValue = dataGridViewCurrentCell.GetInheritedStyle(inheritedCellStyle: null, _ptCurrentCell.Y, includeColors: false).
NullValue
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (9)
1623
cellStyle.
NullValue
,
1648
cellStyle.
NullValue
is null &&
2063
inheritedCellStyleTmp.NullValue = cellStyle.
NullValue
;
2067
inheritedCellStyleTmp.NullValue = rowStyle.
NullValue
;
2072
inheritedCellStyleTmp.NullValue = DataGridView.RowsDefaultCellStyle.
NullValue
;
2077
inheritedCellStyleTmp.NullValue = DataGridView.AlternatingRowsDefaultCellStyle.
NullValue
;
2081
inheritedCellStyleTmp.NullValue = columnStyle.
NullValue
;
2085
inheritedCellStyleTmp.NullValue = dataGridViewStyle.
NullValue
;
3742
cellStyle.
NullValue
,
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (8)
50
NullValue = dataGridViewCellStyle.
NullValue
;
246
object? originalValue =
NullValue
;
405
NullValue = dataGridViewCellStyle.
NullValue
;
459
dgvcs.
NullValue
!=
NullValue
||
496
hash.Add(
NullValue
);
588
if (!IsNullValueDefault &&
NullValue
is not null)
595
sb.Append($" NullValue={
NullValue
}");
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (3)
227
if (value && DefaultCellStyle.
NullValue
is bool boolValue && !boolValue)
231
else if (!value && DefaultCellStyle.
NullValue
is CheckState state && state == CheckState.Indeterminate)
305
!defaultNullValue.Equals(defaultCellStyle.
NullValue
) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
492
inheritedCellStyleTmp.NullValue = columnStyle.
NullValue
;
496
inheritedCellStyleTmp.NullValue = dataGridViewStyle.
NullValue
;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (3)
369
inheritedCellStyleTmp.NullValue = cellStyle.
NullValue
;
373
inheritedCellStyleTmp.NullValue = columnHeadersStyle.
NullValue
;
377
inheritedCellStyleTmp.NullValue = dataGridViewStyle.
NullValue
;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
370
if (formattedValue is null && cellStyle.
NullValue
is null)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (3)
222
DefaultCellStyle.
NullValue
is Bitmap bitmap &&
228
DefaultCellStyle.
NullValue
is Icon icon &&
281
!defaultNullValue.Equals(defaultCellStyle.
NullValue
) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (7)
682
inheritedCellStyle.NullValue = cellStyle.
NullValue
;
686
inheritedCellStyle.NullValue = rowHeadersStyle.
NullValue
;
690
inheritedCellStyle.NullValue = dataGridViewStyle.
NullValue
;
901
inheritedRowStyle.NullValue = rowStyle.
NullValue
;
906
inheritedRowStyle.NullValue = rowsDefaultCellStyle.
NullValue
;
910
inheritedRowStyle.NullValue = alternatingRowsDefaultCellStyle.
NullValue
;
914
inheritedRowStyle.NullValue = dataGridViewStyle.
NullValue
;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
394
inheritedCellStyleTmp.NullValue = cellStyle.
NullValue
;
398
inheritedCellStyleTmp.NullValue = rowHeadersStyle.
NullValue
;
402
inheritedCellStyleTmp.NullValue = dataGridViewStyle.
NullValue
;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
417
object? srcNullValue = srcColumn.DefaultCellStyle.
NullValue
;
418
object? destNullValue = destColumn.DefaultCellStyle.
NullValue
;
System\Windows\Forms\Design\FormatStringDialog.cs (1)
114
object? nullValue = _dgvCellStyle?.
NullValue
;
System.Windows.Forms.Tests (18)
System\Windows\Forms\DataGridViewCellStyleTests.cs (18)
30
Assert.Equal(string.Empty, style.
NullValue
);
71
Assert.Equal("null", style.
NullValue
);
96
Assert.Equal(string.Empty, style.
NullValue
);
398
Assert.Equal(value, style.
NullValue
);
403
Assert.Equal(value, style.
NullValue
);
416
Assert.Equal(value, style.
NullValue
);
421
Assert.Equal(value, style.
NullValue
);
434
Assert.Equal(value, style.
NullValue
);
439
Assert.Equal(value, style.
NullValue
);
452
Assert.Same(value, style.
NullValue
);
465
Assert.Equal("value", style.
NullValue
);
477
Assert.Equal(string.Empty, style.
NullValue
);
649
Assert.Equal("null", style.
NullValue
);
691
Assert.Equal("null", style.
NullValue
);
739
Assert.Equal("null", style.
NullValue
);
764
Assert.Equal(string.Empty, style.
NullValue
);
805
Assert.Equal("null", style.
NullValue
);
830
Assert.Equal(string.Empty, style.
NullValue
);