1 write to _typesListBox
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
27_typesListBox = new();
17 references to _typesListBox
System.Windows.Forms.Design (17)
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (17)
28Size = _typesListBox.Size; 29_typesListBox.Dock = DockStyle.Fill; 30_typesListBox.Sorted = true; 31_typesListBox.HorizontalScrollbar = true; 32_typesListBox.SelectedIndexChanged += typesListBox_SelectedIndexChanged; 33Controls.Add(_typesListBox); 35ActiveControl = _typesListBox; 45using Graphics g = _typesListBox.CreateGraphics(); 47for (int i = 0; i < _typesListBox.Items.Count; i++) 49ListBoxItem item = (ListBoxItem)_typesListBox.Items[i]; 50width = Math.Max(width, Size.Ceiling(g.MeasureString(item.ToString(), _typesListBox.Font)).Width); 81_typesListBox.Items.Clear(); 108_typesListBox.Items.Add(new ListBoxItem(t)); 111_typesListBox.SelectedIndex = TypeToSelectedIndex(defaultType); 121_selectedType = _typesListBox.SelectedItem is ListBoxItem selectedItem ? selectedItem.ColumnType : null; 127for (int i = 0; i < _typesListBox.Items.Count; i++) 129if (type == ((ListBoxItem)_typesListBox.Items[i]).ColumnType)