2 instantiations of ListItem
System.Windows.Forms.Design (2)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
140ListItem created = new(_editor, instance); 757_listBox.Items.Add(new ListItem(_editor, items[i]));
22 references to ListItem
System.Windows.Forms.Design (22)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (22)
83foreach (ListItem item in _listBox.SelectedItems) 140ListItem created = new(_editor, instance); 153UpdateItemWidths(_listBox.Items[^1] as ListItem); 169items[i] = ((ListItem)_listBox.Items[i]).Value; 209private int CalcItemWidth(Graphics g, ListItem item) 368private static string GetDisplayText(ListItem? item) 516private void UpdateItemWidths(ListItem? item) 537foreach (ListItem i in _listBox.Items) 557ListItem item = (ListItem)_listBox.Items[e.Index]; 680items[i] = ((ListItem)_listBox.Items[i]).Value; 810List<ListItem> toBeDeleted = _listBox.SelectedItems.Cast<ListItem>().ToList(); 811foreach (ListItem item in toBeDeleted) 818RemoveInternal((ListItem?)_listBox.SelectedItem); 864_propertiesLabel.Text = string.Format(SR.CollectionEditorProperties, GetDisplayText((ListItem?)_listBox.SelectedItem)); 870private void RemoveInternal(ListItem? item) 1032_removeButton.Enabled = editEnabled && AllowRemoveInstance(((ListItem)_listBox.SelectedItem!).Value); 1053items[i] = ((ListItem)_listBox.SelectedItems[i]!).Value; 1061_propertiesLabel.Text = string.Format(SR.CollectionEditorProperties, GetDisplayText((ListItem)_listBox.SelectedItem)); 1138foreach (ListItem li in collection) 1215foreach (ListItem li in _collection)