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)
28
Size =
_typesListBox
.Size;
29
_typesListBox
.Dock = DockStyle.Fill;
30
_typesListBox
.Sorted = true;
31
_typesListBox
.HorizontalScrollbar = true;
32
_typesListBox
.SelectedIndexChanged += typesListBox_SelectedIndexChanged;
33
Controls.Add(
_typesListBox
);
35
ActiveControl =
_typesListBox
;
45
using Graphics g =
_typesListBox
.CreateGraphics();
47
for (int i = 0; i <
_typesListBox
.Items.Count; i++)
49
ListBoxItem item = (ListBoxItem)
_typesListBox
.Items[i];
50
width = 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;
127
for (int i = 0; i <
_typesListBox
.Items.Count; i++)
129
if (type == ((ListBoxItem)
_typesListBox
.Items[i]).ColumnType)