248 references to Add
DesignSurface (4)
MainForm.cs (4)
307menuStrip1.Items.Add(toolStripMenuItem1); 308menuStrip1.Items.Add(toolStripMenuItem2); 309menuStrip2.Items.Add(menu1); 310menuStrip2.Items.Add(menuNew1);
System.Windows.Forms (23)
System\Windows\Forms\ContextMenuStrip.cs (2)
70contextMenuStrip.Items.Add(new ToolStripSeparator()); 74contextMenuStrip.Items.Add(toolStripMenuItem.Clone());
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (5)
4245DisplayedItems.Add(Grip); 4296DisplayedItems.Add(item); 4301OverflowItems.Add(item); 4323DisplayedItems.Add(OverflowButton); 4356DisplayedItems.Add(item);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (2)
266managedDropDown.Items.Add(itemToAdd); 778DisplayedItems.Add(DownScrollButton);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1414value?.Items.Add(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (5)
96Add(item); 130Add(toolStripItems[i]); 153Add(toolStripItems[i--]); 295int IList.Add(object? value) { return Add((ToolStripItem)value!); } 469Add(value);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
1245int index = destinationItems.Add(source);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (1)
126_owner.Items.Add(droppedItem);
System\Windows\Forms\MDI\MdiWindowListStrip.cs (4)
40Items.Add(_mergeItem); 88mergeItem.DropDownItems.Add(separator); 131mergeItem.DropDownItems.Add(windowListItem); 146mergeItem.DropDownItems.Add(moreWindowsMenuItem);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (2)
962_toolStrip1.Items.Add(_pageCounterItem); 963_toolStrip1.Items.Add(_pageToolStripLabel);
System.Windows.Forms.Design (20)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
72addDownMenu.Items.Add(new TypeMenuItem(newItemTypes[i], addDownMenuClick));
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (1)
158Items.Add(_panel);
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
137_selectionMenuItem.DropDownItems.Add(selectListItem);
System\Windows\Forms\Design\GroupedContextMenuStrip.cs (2)
56Items.Add(new ToolStripSeparator()); 61Items.Add(item);
System\Windows\Forms\Design\StandardMenuStripVerb.cs (3)
194rootItem.DropDownItems.Add(item); 209tool.Items.Add(rootItem); 353tool.Items.Add(item);
System\Windows\Forms\Design\ToolStripDesigner.cs (5)
734ToolStrip.Items.Add(_editorNode); 925ToolStrip.Items.Add(newItem); 1904parentToolStrip.Items.Add(components[i] as ToolStripItem); 1963ToolStrip.Items.Add(_editorNode); 2126ToolStrip.Items.Add(_editorNode);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
397_designMenu.Items.Add(_menuItem);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (6)
381dropDown.Items.Add(_typeHereNode); 735MenuItem.DropDown.Items.Add(_typeHereNode); 1758MenuItem.DropDown.Items.Add(newItem); 1762MenuItem.DropDownItems.Add(newItem); 2040MenuItem.DropDown.Items.Add(_typeHereNode); 2758parentToolStrip.Items.Add(toolItem);
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\BaseContextMenuStripTests.cs (1)
24contextMenuStrip.Items.Add(new ToolStripMenuItem());
System.Windows.Forms.Tests (176)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (11)
1436Assert.Throws<ArgumentException>(() => toolStrip.Items.Add(host)); 1441toolStrip.Items.Add(host); 1503Assert.Throws<ArgumentException>(() => toolStrip.Items.Add(host)); 1508toolStrip.Items.Add(host); 1535toolStrip.Items.Add(label); 1540Assert.Throws<ArgumentException>(() => toolStrip.Items.Add(host)); 1545toolStrip.Items.Add(host); 1546toolStrip.Items.Add(button); 1572toolStrip.Items.Add(label); 1577Assert.Throws<ArgumentException>(() => toolStrip.Items.Add(host)); 1582toolStrip.Items.Add(host);
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (10)
378menuStrip.Items.Add(CreateSkippedItem()); 379menuStrip.Items.Add(CreateSkippedItem()); 576menuStrip.Items.Add(CreateSkippedItem()); 592menuStrip.Items.Add(CreateSkippedItem()); 593menuStrip.Items.Add(CreateSkippedItem()); 608menuStrip.Items.Add(CreateSkippedItem()); 609menuStrip.Items.Add(CreateSkippedItem()); 662menuStrip.Items.Add(CreateSkippedItem()); 684menuStrip.Items.Add(CreateSkippedItem()); 936menuStrip.Items.Add(CreateMenuItem());
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (10)
358statusStrip.Items.Add(CreateSkippedItem()); 359statusStrip.Items.Add(CreateSkippedItem()); 556statusStrip.Items.Add(CreateSkippedItem()); 572statusStrip.Items.Add(CreateSkippedItem()); 573statusStrip.Items.Add(CreateSkippedItem()); 588statusStrip.Items.Add(CreateSkippedItem()); 589statusStrip.Items.Add(CreateSkippedItem()); 642statusStrip.Items.Add(CreateSkippedItem()); 664statusStrip.Items.Add(CreateSkippedItem()); 917statusStrip.Items.Add(CreateStatusStripItem());
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (10)
371toolStrip.Items.Add(CreateSkippedItem()); 372toolStrip.Items.Add(CreateSkippedItem()); 569toolStrip.Items.Add(CreateSkippedItem()); 585toolStrip.Items.Add(CreateSkippedItem()); 586toolStrip.Items.Add(CreateSkippedItem()); 601toolStrip.Items.Add(CreateSkippedItem()); 602toolStrip.Items.Add(CreateSkippedItem()); 655toolStrip.Items.Add(CreateSkippedItem()); 677toolStrip.Items.Add(CreateSkippedItem()); 977toolStrip.Items.Add(CreateToolStripItem());
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxAccessibleObjectTests.cs (1)
13toolStrip.Items.Add(toolStripComboBox);
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (1)
72toolStrip.Items.Add(toolStripControlHost);
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripHostedControlAccessibleObjectTests.cs (1)
24toolStrip.Items.Add(item);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (1)
79toolStrip.Items.Add(dropDownItem);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownItemAccessibleObjectTests.cs (4)
63control.DropDown.Items.Add(new SubToolStripDropDownItem()); 82control.DropDown.Items.Add(new SubToolStripDropDownItem()); 95control.DropDown.Items.Add(new SubToolStripDropDownItem() { Available = true }); 175control.DropDownItems.Add(new SubToolStripDropDownItem() { Available = true });
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (12)
34toolStrip.Items.Add(item); 116toolStrip.Items.Add(ownerItem); 117ownerItem.DropDownItems.Add(parentItem1); 118ownerItem.DropDownItems.Add(parentItem2); 119parentItem1.DropDownItems.Add(childItem1); 120parentItem1.DropDownItems.Add(childItem2); 121parentItem2.DropDownItems.Add(childItem3); 122parentItem2.DropDownItems.Add(childItem4); 200parentItem1.DropDownItems.Add(childItem1); 201parentItem1.DropDownItems.Add(childItem2); 202parentItem2.DropDownItems.Add(childItem3); 203parentItem2.DropDownItems.Add(childItem4);
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (4)
118toolStrip.Items.Add(item); 317toolStrip.Items.Add(CreateSkippedItem()); 319toolStrip.Items.Add(CreateSkippedItem()); 321toolStrip.Items.Add(CreateSkippedItem());
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (6)
133menuStrip.Items.Add(item1); 140menuStrip.Items.Add(separator); 148menuStrip.Items.Add(item2); 173menuStrip.Items.Add(item1); 180menuStrip.Items.Add(separator); 188menuStrip.Items.Add(item2);
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (1)
207toolStrip.Items.Add(CreateItem(ToolStripItemAlignment.Left));
System\Windows\Forms\AccessibleObjects\ToolStripProgressBar.ToolStripProgressBarControl.ToolStripProgressBarControlAccessibleObjectTests.cs (3)
126toolStrip.Items.Add(label); 127toolStrip.Items.Add(item); 128toolStrip.Items.Add(button);
System\Windows\Forms\AccessibleObjects\ToolStripScrollButton.ToolStripScrollButtonAccessibleObjectTests.cs (10)
36toolStrip.Items.Add(ownerItem); 38ownerItem.DropDownItems.Add(new ToolStripDropDownButton("Item 1")); 39ownerItem.DropDownItems.Add(new ToolStripDropDownButton("Item 2")); 40ownerItem.DropDownItems.Add(new ToolStripDropDownButton("Item 3")); 98toolStrip.Items.Add(ownerItem); 100ownerItem.DropDownItems.Add(new ToolStripDropDownButton("Item 1")); 101ownerItem.DropDownItems.Add(new ToolStripDropDownButton("Item 2")); 136toolStrip.Items.Add(ownerItem); 138ownerItem.DropDownItems.Add(new ToolStripDropDownButton("Item 1")); 139ownerItem.DropDownItems.Add(new ToolStripDropDownButton("Item 2"));
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (2)
54toolStrip.Items.Add(toolStripSplitButton); 70toolStrip.Items.Add(toolStripSplitButton);
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (4)
1744control.Items.Add(itemWithDefaultName); 1745control.Items.Add(itemWithoutName); 1746control.Items.Add(itemWithNonStringName); 1747control.Items.Add(itemWithName);
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (1)
173toolStrip.Items.Add(new ToolStripLabel("text"));
System\Windows\Forms\ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs (3)
29toolStrip.Items.Add(toolStripItem); 45toolStrip.Items.Add(toolStripItem); 77toolStrip.Items.Add(toolStripItem);
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (6)
20toolStrip.Items.Add(toolStripButton); 46toolStrip.Items.Add(toolStripButton); 70toolStrip.Items.Add(toolStripButton); 96toolStrip.Items.Add(toolStripButton); 122toolStrip.Items.Add(toolStripDropDownButton); 149toolStrip.Items.Add(toolStripDropDownButton);
System\Windows\Forms\ToolStripDropDownTests.cs (14)
1589control.Items.Add(item1); 1590control.Items.Add(item2); 1654control.Items.Add(child1); 1655control.Items.Add(child2); 3206control.Items.Add(item1); 3207control.Items.Add(item2); 3479control.Items.Add(item1); 3480control.Items.Add(item2); 3560control.Items.Add(item1); 3561control.Items.Add(item2); 4278control.Items.Add(item1); 4279control.Items.Add(item2); 4511control.Items.Add(item1); 4512control.Items.Add(item2);
System\Windows\Forms\ToolStripItemCollectionTests.cs (9)
44child3.DropDownItems.Add(grandchild1); 45child3.DropDownItems.Add(grandchild2); 46child3.DropDownItems.Add(grandchild3); 48collection.Add(child1); 49collection.Add(child2); 50collection.Add(child3); 87collection.Add(child1); 88collection.Add(child2); 89collection.Add(child3);
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (1)
36toolStrip.Items.Add(toolStripItem);
System\Windows\Forms\ToolStripItemTests.cs (3)
395toolStrip.Items.Add(item); 7078toolStrip.Items.Add(toolStripDropDownItem1); 7081toolStripDropDownItem1.DropDownItems.Add(toolStripDropDownItem2);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (1)
83owner.Items.Add(ownedDropDownItem);
System\Windows\Forms\ToolStripTests.cs (47)
389control.Items.Add(item); 534control.Items.Add(item); 1505control.Items.Add(item1); 1506control.Items.Add(item2); 1570control.Items.Add(child1); 1571control.Items.Add(child2); 1631toolStrip1.Items.Add(item1); 1632toolStrip1.Items.Add(item2); 1651toolStrip1.Items.Add(item1); 1652toolStrip1.Items.Add(item2); 3478control.Items.Add(item1); 3479control.Items.Add(item2); 3508control.Items.Add(item1); 3509control.Items.Add(item2); 3609control.Items.Add(item); 3895control.Items.Add(item1); 3896control.Items.Add(item2); 3938control.Items.Add(item1); 3939control.Items.Add(item2); 3975control.Items.Add(item1); 3976control.Items.Add(item2); 4040control.Items.Add(item1); 4041control.Items.Add(item2); 4465control.Items.Add(item1); 4466control.Items.Add(item2); 4633control.Items.Add(item1); 4634control.Items.Add(item2); 4714control.Items.Add(item1); 4715control.Items.Add(item2); 5283control.Items.Add(item1); 5284control.Items.Add(item2); 5320control.Items.Add(item1); 5321control.Items.Add(item2); 5456control.Items.Add(item1); 5457control.Items.Add(item2); 5656control.Items.Add(item1); 5657control.Items.Add(item2); 5828toolStrip.Items.Add(item); 6406control.Items.Add(item1); 6407control.Items.Add(item2); 6459control.Items.Add(item1); 6460control.Items.Add(item2); 6697control.Items.Add(item1); 6698control.Items.Add(item2); 6742control.Items.Add(item1); 6743control.Items.Add(item2); 7345toolStripMenuItem.DropDownItems.Add(listToolStripMenuItem);
System.Windows.Forms.UI.IntegrationTests (8)
Dpi\ToolStripItemTests.Dpi.cs (1)
41toolStrip.Items.Add(toolStripItemOpen);
DragDropTests.cs (2)
977ToolStrip.Items.Add(toolStripDropDownButton); 1004_contextMenuStrip.Items.Add(dragAcceptItem);
ToolStripTests.cs (5)
41toolStrip.Items.Add(toolStripButton); 71menu1.DropDownItems.Add(menu1Item1); 75hiddenMenu.DropDownItems.Add(hiddenMenuItem1); 79menuStrip.Items.Add(menu1); 80menuStrip.Items.Add(hiddenMenu);
WinFormsControlsTest (16)
Dialogs.cs (2)
56toolbar.Items.Add(new ToolStripSeparator { Visible = true }); 57toolbar.Items.Add(_btnOpen);
DragDrop.cs (4)
456toolStrip.Items.Add(catToolStripDropDownButton); 504_catContextMenuStrip.Items.Add(dragAcceptItem); 505_catContextMenuStrip.Items.Add(nyanCatItem); 506_catContextMenuStrip.Items.Add(asciiCatItem);
MdiChild.cs (2)
16_menuStrip.Items.Add(new ToolStripMenuItem { Text = "Child1" }); 17_menuStrip.Items.Add(new ToolStripMenuItem
MdiParent.cs (2)
31_menuStrip.Items.Add(menu); 40_menuStrip.Items.Add(item);
MessageBoxes.cs (2)
42toolbar.Items.Add(new ToolStripSeparator { Visible = true }); 43toolbar.Items.Add(_btnOpen);
ToolStripTests.cs (4)
15toolStrip1.Items.Add(new ToolStripControlHost(new RadioButton() { Text = "RadioButton" })); // RadioButton supports UIA 16toolStrip1.Items.Add(new ToolStripControlHost(new HScrollBar() { Value = 30 })); // HScrollBar doesn't support UIA 17statusStrip1.Items.Add(new ToolStripControlHost(new RadioButton() { Text = "RadioButton" })); // RadioButton supports UIA 18statusStrip1.Items.Add(new ToolStripControlHost(new HScrollBar() { Value = 30 })); // HScrollBar doesn't support UIA