42 references to None
System.Windows.Forms (28)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
4955dataGridViewColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (19)
1693or DataGridViewAutoSizeColumnMode.None 1702case DataGridViewAutoSizeColumnMode.None: 9365&& (dataGridViewColumn.InheritedAutoSizeMode == DataGridViewAutoSizeColumnMode.None 9385&& (dataGridViewColumn.InheritedAutoSizeMode == DataGridViewAutoSizeColumnMode.None 9508&& (dataGridViewColumn.InheritedAutoSizeMode == DataGridViewAutoSizeColumnMode.None 9533&& (dataGridViewColumn.InheritedAutoSizeMode == DataGridViewAutoSizeColumnMode.None 10556bool fixedColumnWidth = autoSizeColumnMode is DataGridViewAutoSizeColumnMode.None or DataGridViewAutoSizeColumnMode.Fill; 11169and not DataGridViewAutoSizeColumnMode.None 11181if (autoSizeColumnMode != DataGridViewAutoSizeColumnMode.None) 11220if (autoSizeColumnMode is not DataGridViewAutoSizeColumnMode.None and not DataGridViewAutoSizeColumnMode.Fill) 11251and not DataGridViewAutoSizeColumnMode.None 11260if (autoSizeColumnMode != DataGridViewAutoSizeColumnMode.None) 11306if (autoSizeColumnMode is not DataGridViewAutoSizeColumnMode.None and not DataGridViewAutoSizeColumnMode.Fill) 13464if (inheritedAutoSizeMode is DataGridViewAutoSizeColumnMode.None or DataGridViewAutoSizeColumnMode.Fill) 14381if (autoSizeColumnMode is not DataGridViewAutoSizeColumnMode.None 14711dataGridViewColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.None; 14727dataGridViewColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.None; 16912if (autoSizeColumnMode != DataGridViewAutoSizeColumnMode.None 22005&& (dataGridViewColumn.InheritedAutoSizeMode == DataGridViewAutoSizeColumnMode.None
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
642not DataGridViewAutoSizeColumnMode.None and
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (6)
82case DataGridViewAutoSizeColumnMode.None: 116and not DataGridViewAutoSizeColumnMode.None 122and not DataGridViewAutoSizeColumnMode.None 877_ => DataGridViewAutoSizeColumnMode.None, 887or DataGridViewAutoSizeColumnMode.None 896case DataGridViewAutoSizeColumnMode.None:
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
593and not DataGridViewAutoSizeColumnMode.None)
System.Windows.Forms.Tests (14)
System\Windows\Forms\DataGridViewAutoSizeColumnsModeEventArgsTests.cs (1)
13yield return new object[] { new DataGridViewAutoSizeColumnMode[] { DataGridViewAutoSizeColumnMode.AllCells, DataGridViewAutoSizeColumnMode.None - 1 } };
System\Windows\Forms\DataGridViewColumnTests.cs (13)
162yield return new object[] { dataGridMode, columnHeadersVisible, frozen, DataGridViewAutoSizeColumnMode.None, DataGridViewAutoSizeColumnMode.None }; 219yield return new object[] { dataGridMode, columnHeadersVisible, frozen, DataGridViewAutoSizeColumnMode.None, DataGridViewAutoSizeColumnMode.None }; 270Assert.Equal(DataGridViewAutoSizeColumnMode.None, column.InheritedAutoSizeMode); 289Assert.Equal(DataGridViewAutoSizeColumnMode.None, column.InheritedAutoSizeMode); 325Assert.Equal(DataGridViewAutoSizeColumnMode.None, column.InheritedAutoSizeMode); 342Assert.Equal(DataGridViewAutoSizeColumnMode.None, column.InheritedAutoSizeMode); 399foreach (DataGridViewAutoSizeColumnMode previous in new DataGridViewAutoSizeColumnMode[] { DataGridViewAutoSizeColumnMode.NotSet, DataGridViewAutoSizeColumnMode.None, DataGridViewAutoSizeColumnMode.Fill }) 403yield return new object[] { previous, DataGridViewAutoSizeColumnMode.None, 20 }; 410yield return new object[] { DataGridViewAutoSizeColumnMode.AllCells, DataGridViewAutoSizeColumnMode.None, 20 }; 1375[InlineData(DataGridViewAutoSizeColumnsMode.None, DataGridViewAutoSizeColumnMode.None)] 1767[InlineData(DataGridViewAutoSizeColumnMode.None)]