106 references to NotSet
System.Windows.Forms (42)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
1977
|| _defaultCellStyle.WrapMode == DataGridViewTriState.
NotSet
)
2015
if (_defaultCellStyle.WrapMode == DataGridViewTriState.
NotSet
)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
2928
if (cellStyle is not null && cellStyle.WrapMode != DataGridViewTriState.
NotSet
)
2932
else if (columnHeadersStyle is not null && columnHeadersStyle.WrapMode != DataGridViewTriState.
NotSet
)
2938
Debug.Assert(dataGridViewStyle.WrapMode != DataGridViewTriState.
NotSet
);
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (2)
494
return DataGridViewTriState.
NotSet
;
507
if (value == DataGridViewTriState.
NotSet
)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
224
defaultCellStyle.WrapMode != DataGridViewTriState.
NotSet
||
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (7)
2194
if (cellStyle is not null && cellStyle.WrapMode != DataGridViewTriState.
NotSet
)
2198
else if (rowStyle is not null && rowStyle.WrapMode != DataGridViewTriState.
NotSet
)
2202
else if (DataGridView.RowsDefaultCellStyle.WrapMode != DataGridViewTriState.
NotSet
&&
2203
(rowIndex % 2 == 0 || DataGridView.AlternatingRowsDefaultCellStyle.WrapMode == DataGridViewTriState.
NotSet
))
2207
else if (rowIndex % 2 == 1 && DataGridView.AlternatingRowsDefaultCellStyle.WrapMode != DataGridViewTriState.
NotSet
)
2211
else if (columnStyle is not null && columnStyle.WrapMode != DataGridViewTriState.
NotSet
)
2217
Debug.Assert(dataGridViewStyle.WrapMode != DataGridViewTriState.
NotSet
);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (6)
342
[DefaultValue(DataGridViewTriState.
NotSet
)]
346
get => Properties.GetValueOrDefault(s_propWrapMode, DataGridViewTriState.
NotSet
);
359
Debug.Assert(value is >= DataGridViewTriState.
NotSet
and <= DataGridViewTriState.False);
362
Properties.AddOrRemoveValue(s_propWrapMode, value, defaultValue: DataGridViewTriState.
NotSet
);
428
if (dataGridViewCellStyle.WrapMode != DataGridViewTriState.
NotSet
)
621
if (WrapMode != DataGridViewTriState.
NotSet
)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
310
defaultCellStyle.WrapMode != DataGridViewTriState.
NotSet
||
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (3)
223
defaultCellStyle.WrapMode != DataGridViewTriState.
NotSet
||
536
if (columnStyle is not null && columnStyle.WrapMode != DataGridViewTriState.
NotSet
)
542
Debug.Assert(dataGridViewStyle.WrapMode != DataGridViewTriState.
NotSet
);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (3)
433
if (cellStyle is not null && cellStyle.WrapMode != DataGridViewTriState.
NotSet
)
437
else if (columnHeadersStyle.WrapMode != DataGridViewTriState.
NotSet
)
443
Debug.Assert(dataGridViewStyle.WrapMode != DataGridViewTriState.
NotSet
);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (1)
286
defaultCellStyle.WrapMode != DataGridViewTriState.
NotSet
||
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (9)
746
if (cellStyle is not null && cellStyle.WrapMode != DataGridViewTriState.
NotSet
)
750
else if (rowHeadersStyle is not null && rowHeadersStyle.WrapMode != DataGridViewTriState.
NotSet
)
756
Debug.Assert(dataGridViewStyle.WrapMode != DataGridViewTriState.
NotSet
);
983
if (rowStyle is not null && rowStyle.WrapMode != DataGridViewTriState.
NotSet
)
987
else if (rowsDefaultCellStyle.WrapMode != DataGridViewTriState.
NotSet
&& (rowIndex % 2 == 0 || alternatingRowsDefaultCellStyle.WrapMode == DataGridViewTriState.
NotSet
))
991
else if (rowIndex % 2 == 1 && alternatingRowsDefaultCellStyle.WrapMode != DataGridViewTriState.
NotSet
)
997
Debug.Assert(dataGridViewStyle.WrapMode != DataGridViewTriState.
NotSet
);
1353
return DataGridViewTriState.
NotSet
;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
458
if (cellStyle is not null && cellStyle.WrapMode != DataGridViewTriState.
NotSet
)
462
else if (rowHeadersStyle.WrapMode != DataGridViewTriState.
NotSet
)
468
Debug.Assert(dataGridViewStyle.WrapMode != DataGridViewTriState.
NotSet
);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
139
Debug.Assert(cellStyle.WrapMode != DataGridViewTriState.
NotSet
);
System.Windows.Forms.Tests (64)
System\Windows\Forms\DataGridViewCellStyleTests.cs (4)
33
Assert.Equal(DataGridViewTriState.
NotSet
, style.WrapMode);
100
Assert.Equal(DataGridViewTriState.
NotSet
, style.WrapMode);
769
Assert.Equal(DataGridViewTriState.
NotSet
, style.WrapMode);
836
Assert.Equal(DataGridViewTriState.
NotSet
, style.WrapMode);
System\Windows\Forms\DataGridViewCellTests.cs (22)
1418
[InlineData(DataGridViewTriState.
NotSet
, DataGridViewElementStates.ResizableSet)]
1445
[InlineData(DataGridViewTriState.
NotSet
, DataGridViewElementStates.ResizableSet)]
1988
[InlineData(DataGridViewTriState.
NotSet
, false)]
2003
[InlineData(DataGridViewTriState.True, DataGridViewTriState.
NotSet
, true)]
2006
[InlineData(DataGridViewTriState.False, DataGridViewTriState.
NotSet
, true)]
2007
[InlineData(DataGridViewTriState.
NotSet
, DataGridViewTriState.True, true)]
2008
[InlineData(DataGridViewTriState.
NotSet
, DataGridViewTriState.False, true)]
2009
[InlineData(DataGridViewTriState.
NotSet
, DataGridViewTriState.
NotSet
, true)]
4433
[InlineData(DataGridViewTriState.
NotSet
, DataGridViewElementStates.ResizableSet)]
4480
yield return new object[] { DataGridViewTriState.True, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible };
4483
yield return new object[] { DataGridViewTriState.False, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible };
4484
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.True, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible };
4485
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.False, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible };
4486
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible };
4554
yield return new object[] { DataGridViewTriState.True, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible | DataGridViewElementStates.Displayed | DataGridViewElementStates.Selected };
4557
yield return new object[] { DataGridViewTriState.False, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible | DataGridViewElementStates.Displayed | DataGridViewElementStates.Selected };
4558
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.True, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible | DataGridViewElementStates.Displayed | DataGridViewElementStates.Selected };
4559
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.False, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible | DataGridViewElementStates.Displayed | DataGridViewElementStates.Selected };
4560
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible | DataGridViewElementStates.Displayed | DataGridViewElementStates.Selected };
System\Windows\Forms\DataGridViewColumnTests.cs (2)
42
Assert.Equal(DataGridViewTriState.
NotSet
, column.Resizable);
89
Assert.Equal(DataGridViewTriState.
NotSet
, column.Resizable);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (31)
862
[InlineData(DataGridViewTriState.
NotSet
, false)]
877
[InlineData(DataGridViewTriState.
NotSet
, false)]
892
[InlineData(DataGridViewTriState.
NotSet
, false)]
915
yield return new object[] { columnHeadersHeightSizeMode, rowHeadersWidthSizeMode, DataGridViewTriState.
NotSet
, columnResizable, true };
981
yield return new object[] { columnHeadersHeightSizeMode, rowHeadersWidthSizeMode, rowResizable, DataGridViewTriState.
NotSet
, true };
2461
[InlineData(DataGridViewTriState.
NotSet
, DataGridViewElementStates.ResizableSet)]
2488
[InlineData(DataGridViewTriState.
NotSet
, DataGridViewElementStates.ResizableSet)]
2535
yield return new object[] { DataGridViewTriState.True, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible };
2538
yield return new object[] { DataGridViewTriState.False, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible };
2539
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.True, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible };
2540
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.False, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible };
2541
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible };
2645
yield return new object[] { DataGridViewTriState.True, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible };
2648
yield return new object[] { DataGridViewTriState.False, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible };
2649
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.True, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible };
2650
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.False, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible };
2651
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible };
2754
yield return new object[] { DataGridViewTriState.True, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible | DataGridViewElementStates.Displayed };
2757
yield return new object[] { DataGridViewTriState.False, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible | DataGridViewElementStates.Displayed };
2758
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.True, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible | DataGridViewElementStates.Displayed };
2759
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.False, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible | DataGridViewElementStates.Displayed };
2760
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible | DataGridViewElementStates.Displayed };
2905
yield return new object[] { DataGridViewTriState.True, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible | DataGridViewElementStates.Displayed };
2908
yield return new object[] { DataGridViewTriState.False, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible | DataGridViewElementStates.Displayed };
2909
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.True, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible | DataGridViewElementStates.Displayed };
2910
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.False, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible | DataGridViewElementStates.Displayed };
2911
yield return new object[] { DataGridViewTriState.
NotSet
, false, true, DataGridViewTriState.
NotSet
, false, true, DataGridViewElementStates.Resizable | DataGridViewElementStates.Visible | DataGridViewElementStates.Displayed };
System\Windows\Forms\DataGridViewRowTests.cs (4)
41
Assert.Equal(DataGridViewTriState.
NotSet
, row.Resizable);
2801
yield return new object[] { true, DataGridViewTriState.
NotSet
, DataGridViewTriState.True };
2802
yield return new object[] { false, DataGridViewTriState.
NotSet
, DataGridViewTriState.False };
3915
Assert.Equal(DataGridViewTriState.
NotSet
, row.Resizable);
System\Windows\Forms\DataGridViewTests.cs (1)
799
yield return new object[] { new DataGridViewCellStyle { WrapMode = DataGridViewTriState.
NotSet
} };