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