50 references to Insert
System.Windows.Forms (8)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
782DisplayedItems.Insert(0, UpScrollButton);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (2)
297void IList.Insert(int index, object? value) { Insert(index, (ToolStripItem)value!); } 502Insert(index, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (4)
1210destinationItems.Insert(indexOfDestinationItem, source); 1231destinationItems.Insert(insertIndex, source); 1336historyItem.PreviousIndexCollection!.Insert(Math.Min(historyItem.PreviousIndex, historyItem.PreviousIndexCollection.Count), historyItem.TargetItem!); 1339historyItem.IndexCollection!.Insert(Math.Min(historyItem.Index, historyItem.IndexCollection.Count), historyItem.TargetItem!);
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (1)
200toolStrip.Items.Insert(i, value.Items[key]!);
System.Windows.Forms.Design (24)
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
145Items.Insert(index, _selectionMenuItem);
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
111parent.Items.Insert(dummyIndex, (ToolStripItem)component);
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
922ToolStrip.Items.Insert(indexToInsert, newItem); 928ToolStrip.Items.Insert(count - 1, newItem); 1919parentToolStrip.Items.Insert(0, components[i] as ToolStripItem);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
752parentToolStrip.Items.Insert(indexOfItemUnderMouseToDrop, item);
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (4)
397parent.Items.Insert(dummyIndex, (ToolStripItem)component); 449parent.Items.Insert(dummyIndex, (ToolStripItem)component); 488parent.Items.Insert(dummyIndex, (ToolStripItem)component); 545parent.Items.Insert(dummyIndex, (ToolStripItem)component);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
840parent.Items.Insert(dummyIndex, newItem); 886parent.Items.Insert(dummyIndex, ToolStripItem);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (10)
1377MenuItem.DropDownItems.Insert(index, _commitedEditorNode); 1716MenuItem.DropDown.Items.Insert(_indexToInsertNewItem, newItem); 1720MenuItem.DropDownItems.Insert(_indexToInsertNewItem, newItem); 1734MenuItem.DropDown.Items.Insert(index + 1, newItem); 1738MenuItem.DropDownItems.Insert(index + 1, newItem); 1745MenuItem.DropDown.Items.Insert(index, newItem); 1749MenuItem.DropDownItems.Insert(index, newItem); 1762MenuItem.DropDown.Items.Insert(count - 1, newItem); 1766MenuItem.DropDownItems.Insert(count - 1, newItem); 2083MenuItem.DropDownItems.Insert(0, item);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
905_miniToolStrip.Items.Insert(index, _centerTextBox); 950_miniToolStrip.Items.Insert(index, _centerLabel);
System.Windows.Forms.Tests (18)
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (6)
362menuStrip.Items.Insert(0, CreateSkippedItem()); 426menuStrip.Items.Insert(0, CreateSkippedItem()); 444menuStrip.Items.Insert(0, CreateSkippedItem()); 657menuStrip.Items.Insert(0, CreateSkippedItem()); 679menuStrip.Items.Insert(0, CreateSkippedItem()); 827menuStrip.Items.Insert(1, CreateSkippedItem());
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (6)
342statusStrip.Items.Insert(0, CreateSkippedItem()); 406statusStrip.Items.Insert(0, CreateSkippedItem()); 424statusStrip.Items.Insert(0, CreateSkippedItem()); 637statusStrip.Items.Insert(0, CreateSkippedItem()); 659statusStrip.Items.Insert(0, CreateSkippedItem()); 807statusStrip.Items.Insert(1, CreateSkippedItem());
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (6)
355toolStrip.Items.Insert(0, CreateSkippedItem()); 419toolStrip.Items.Insert(0, CreateSkippedItem()); 437toolStrip.Items.Insert(0, CreateSkippedItem()); 650toolStrip.Items.Insert(0, CreateSkippedItem()); 672toolStrip.Items.Insert(0, CreateSkippedItem()); 820toolStrip.Items.Insert(1, CreateSkippedItem());