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