2 instantiations of ListBoxItem
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
144_selectedColumns.Items.Insert(selectedIndex, new ListBoxItem(newColumn!, this, newColumnDesigner)); 878_selectedColumns.Items.Add(new ListBoxItem(_columnsPrivateCopy[i], this, columnDesigner));
30 references to ListBoxItem
System.Windows.Forms.Design (30)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (28)
100ListBoxItem lbi = (ListBoxItem)_selectedColumns.SelectedItem!; 108private void ColumnTypeChanged(ListBoxItem item, Type newType) 132ListBoxItem listBoxItem = (ListBoxItem)_selectedColumns.SelectedItem; 288if (e.Component is ListBoxItem && _selectedColumns.Items.Contains(e.Component)) 668ListBoxItem? item = (ListBoxItem)_selectedColumns.SelectedItem!; 714ListBoxItem item = (ListBoxItem)_selectedColumns.Items[selectedIndex - 1]; 763ListBoxItem? lbi = _selectedColumns.Items[i] as ListBoxItem; 865ListBoxItem? lbi = _selectedColumns.Items[i] as ListBoxItem; 924ListBoxItem? listBoxItem = _selectedColumns.SelectedItem as ListBoxItem; 938ListBoxItem? listBoxItem = _selectedColumns.SelectedItem as ListBoxItem; 954ListBoxItem? listBoxItem = _selectedColumns.Items[e.Index] as ListBoxItem; 999string columnName = ((ListBoxItem)_selectedColumns.Items[e.Index]).ToString(); 1072DataGridViewColumn column = ((ListBoxItem)_selectedColumns.SelectedItem).DataGridViewColumn; 1342public override Type ComponentType => typeof(ListBoxItem); 1350Debug.Assert(component is ListBoxItem, "this property descriptor only relates to the data grid view column class"); 1361ListBoxItem item = (ListBoxItem)component; 1371ListBoxItem? item = component as ListBoxItem;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.cs (2)
27DataGridViewColumnCollectionDialog.ListBoxItem item = (DataGridViewColumnCollectionDialog.ListBoxItem)context.Instance;