8 types derived from ToolStripMenuItem
System.Windows.Forms (2)
System\Windows\Forms\MDI\MdiControlStrip.ControlBoxMenuItem.cs (1)
9internal class ControlBoxMenuItem : ToolStripMenuItem
System\Windows\Forms\MDI\MdiControlStrip.SystemMenuItem.cs (1)
9internal class SystemMenuItem : ToolStripMenuItem
System.Windows.Forms.Design (5)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1361private class TypeMenuItem : ToolStripMenuItem
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
256private class SelectToolStripMenuItem : ToolStripMenuItem
System\Windows\Forms\Design\DesignerVerbToolStripMenuItem.cs (1)
11internal class DesignerVerbToolStripMenuItem : ToolStripMenuItem
System\Windows\Forms\Design\ItemTypeToolStripMenuItem.cs (1)
12internal class ItemTypeToolStripMenuItem : ToolStripMenuItem
System\Windows\Forms\Design\StandardCommandToolStripMenuItem.cs (1)
12internal class StandardCommandToolStripMenuItem : ToolStripMenuItem
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
407private class SubToolStripMenuItem : ToolStripMenuItem
241 instantiations of ToolStripMenuItem
Accessibility_Core_App (62)
Menu_Toolbars_controls.Designer.cs (35)
38menuStripToolStripMenuItem = new ToolStripMenuItem(); 39item1ToolStripMenuItem = new ToolStripMenuItem(); 40shortCutsToolStripMenuItem = new ToolStripMenuItem(); 41item2ToolStripMenuItem = new ToolStripMenuItem(); 42fileToolStripMenuItem = new ToolStripMenuItem(); 43newToolStripMenuItem = new ToolStripMenuItem(); 44openToolStripMenuItem = new ToolStripMenuItem(); 46saveToolStripMenuItem = new ToolStripMenuItem(); 47saveAsToolStripMenuItem = new ToolStripMenuItem(); 49printToolStripMenuItem = new ToolStripMenuItem(); 50printPreviewToolStripMenuItem = new ToolStripMenuItem(); 52exitToolStripMenuItem = new ToolStripMenuItem(); 53editToolStripMenuItem = new ToolStripMenuItem(); 54undoToolStripMenuItem = new ToolStripMenuItem(); 55redoToolStripMenuItem = new ToolStripMenuItem(); 57cutToolStripMenuItem = new ToolStripMenuItem(); 58copyToolStripMenuItem = new ToolStripMenuItem(); 59pasteToolStripMenuItem = new ToolStripMenuItem(); 61selectAllToolStripMenuItem = new ToolStripMenuItem(); 62toolsToolStripMenuItem = new ToolStripMenuItem(); 63customizeToolStripMenuItem = new ToolStripMenuItem(); 64optionsToolStripMenuItem = new ToolStripMenuItem(); 65helpToolStripMenuItem = new ToolStripMenuItem(); 66contentsToolStripMenuItem = new ToolStripMenuItem(); 67indexToolStripMenuItem = new ToolStripMenuItem(); 68searchToolStripMenuItem = new ToolStripMenuItem(); 70aboutToolStripMenuItem = new ToolStripMenuItem(); 71toolStripMenuItem1 = new ToolStripMenuItem(); 72uncheckedCheckOnClickToolStripMenuItem = new ToolStripMenuItem(); 73checkCheckOnClickToolStripMenuItem = new ToolStripMenuItem(); 74checkedCheckOnClickFToolStripMenuItem = new ToolStripMenuItem(); 75indeterminateToolStripMenuItem = new ToolStripMenuItem(); 76indeterminateCheckOnClickFToolStripMenuItem = new ToolStripMenuItem(); 83toolStripMenuItem3 = new ToolStripMenuItem(); 88toolStripMenuItem2 = new ToolStripMenuItem();
ToolStripContainer.Designer.cs (27)
38this.toolStripToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 52this.statusStripToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 57this.menuStripToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 58this.menuStripItem1ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 59this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 60this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 61this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 63this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 64this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 66this.printToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 67this.printPreviewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 69this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 70this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 71this.undoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 72this.redoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 74this.cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 75this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 76this.pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 78this.selectAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 79this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 80this.customizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 81this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 82this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 83this.contentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 84this.indexToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 85this.searchToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 87this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
DesignSurface (16)
MainForm.cs (4)
302ToolStripMenuItem toolStripMenuItem1 = new("TopMenuItem1"); 303ToolStripMenuItem toolStripMenuItem2 = new("TopMenuItem2"); 304ToolStripMenuItem menu1 = new("BottomMenuItem1"); 305ToolStripMenuItem menuNew1 = new("BottomMenuItem2");
MainForm.Designer.cs (12)
44this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 45this.ToolStripMenuItemUnDo = new System.Windows.Forms.ToolStripMenuItem(); 46this.ToolStripMenuItemReDo = new System.Windows.Forms.ToolStripMenuItem(); 48this.ToolStripMenuItemCut = new System.Windows.Forms.ToolStripMenuItem(); 49this.ToolStripMenuItemCopy = new System.Windows.Forms.ToolStripMenuItem(); 50this.ToolStripMenuItemPaste = new System.Windows.Forms.ToolStripMenuItem(); 51this.ToolStripMenuItemDelete = new System.Windows.Forms.ToolStripMenuItem(); 52this.ToolStripMenuItemKeyInvokeSmartTag = new System.Windows.Forms.ToolStripMenuItem(); 54this.toolStripMenuItemTools = new System.Windows.Forms.ToolStripMenuItem(); 55this.toolStripMenuItemTabOrder = new System.Windows.Forms.ToolStripMenuItem(); 56this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 57this.ToolStripMenuItemAbout = new System.Windows.Forms.ToolStripMenuItem();
System.Windows.Forms (16)
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
150return new ToolStripMenuItem(text, image, onClick);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (2)
248itemToAdd = new ToolStripMenuItem(hmenu, (int)info.wID, targetWindow); 520return new ToolStripMenuItem(text, image, onClick);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
486ToolStripMenuItem menuItem = new();
System\Windows\Forms\MDI\MdiWindowListStrip.cs (3)
33_mergeItem ??= new ToolStripMenuItem 113ToolStripMenuItem windowListItem = new(mdiParent.MdiChildren[i]) 139ToolStripMenuItem moreWindowsMenuItem = new ToolStripMenuItem
System\Windows\Forms\Printing\PrintPreviewDialog.cs (9)
762_autoToolStripMenuItem = new ToolStripMenuItem(); 763_toolStripMenuItem1 = new ToolStripMenuItem(); 764_toolStripMenuItem2 = new ToolStripMenuItem(); 765_toolStripMenuItem3 = new ToolStripMenuItem(); 766_toolStripMenuItem4 = new ToolStripMenuItem(); 767_toolStripMenuItem5 = new ToolStripMenuItem(); 768_toolStripMenuItem6 = new ToolStripMenuItem(); 769_toolStripMenuItem7 = new ToolStripMenuItem(); 770_toolStripMenuItem8 = new ToolStripMenuItem();
System.Windows.Forms.Design (18)
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
118_selectionMenuItem = new ToolStripMenuItem();
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (8)
151_contextMenuRow = new ToolStripMenuItem 157_contextMenuCol = new ToolStripMenuItem 307ToolStripMenuItem add = new(); 308ToolStripMenuItem insert = new(); 309ToolStripMenuItem delete = new(); 312ToolStripMenuItem absolute = new(); 313ToolStripMenuItem percent = new(); 314ToolStripMenuItem autosize = new();
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
38_insertToolStripMenuItem = new ToolStripMenuItem
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
391_menuItem = new ToolStripMenuItem
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (7)
68ToolStripMenuItem item = new(text); 94ToolStripMenuItem item = new(name) 105ToolStripMenuItem item = new(text); 120_imageToolStripMenuItem = new ToolStripMenuItem 192_convertToolStripMenuItem = new ToolStripMenuItem 197_insertToolStripMenuItem = new ToolStripMenuItem 213_editItemsToolStripMenuItem = new ToolStripMenuItem
System.Windows.Forms.Design.Tests (16)
System\Windows\Forms\Design\BaseContextMenuStripTests.cs (1)
24contextMenuStrip.Items.Add(new ToolStripMenuItem());
System\Windows\Forms\Design\ContextMenuStripGroupTests.cs (4)
38ToolStripMenuItem newItem = new("Test Item"); 50ToolStripMenuItem newItem1 = new("Test Item1"); 51ToolStripMenuItem newItem2 = new("Test Item2"); 65ToolStripMenuItem newItem = new("Test Item");
System\Windows\Forms\Design\CustomMenuItemCollectionTests.cs (1)
19ToolStripMenuItem item = new("TestItem");
ToolStripDropDownItemDesignerTest.cs (1)
12ToolStripMenuItem toolStripDropDown = new();
ToolStripMenuItemDesignerTest.cs (9)
19ToolStripMenuItem toolStripDropDown = new(); 35ToolStripMenuItem toolStripMenuItem = new(); 45ToolStripMenuItem toolStripDropDown = new(); 56ToolStripMenuItem toolStripMenuItem = new(); 67ToolStripMenuItem toolStripMenuItem = new(); 77ToolStripMenuItem toolStripMenuItem = new(); 87ToolStripMenuItem toolStripMenuItem = new(); 97ToolStripMenuItem toolStripMenuItem = new(); 126ToolStripMenuItem toolStripMenuItem = new();
System.Windows.Forms.Tests (60)
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (1)
950return new ToolStripMenuItem()
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (1)
105ToolStripItem[] dropDownItems = [new ToolStripMenuItem("Test item")];
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (2)
265using ToolStripMenuItem menuItem = new(); 299using ToolStripMenuItem menuItem = new();
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (15)
15using ToolStripMenuItem toolStripMenuItem = new(); 30using ToolStripMenuItem item1 = new(); 51using ToolStripMenuItem item1 = new(); 70using ToolStripMenuItem toolStripMenuItem = new(); 81using ToolStripMenuItem toolStripMenuItem = new(); 108using ToolStripMenuItem toolStripMenuItem = new(); 120using ToolStripMenuItem toolStripMenuItem = new(); 132using ToolStripMenuItem item1 = new(); 147using ToolStripMenuItem item2 = new(); 160using ToolStripMenuItem toolStripMenuItem = new(); 172using ToolStripMenuItem item1 = new(); 187using ToolStripMenuItem item2 = new(); 206using ToolStripMenuItem toolStripMenuItem = new() 223using ToolStripMenuItem toolStripMenuItem = new() 236using ToolStripMenuItem toolStripMenuItem = new()
System\Windows\Forms\MdiControlStripTests.cs (6)
198using ToolStripMenuItem toolStripMenuItem1 = new() { Text = "&Test1" }; 199using ToolStripMenuItem toolStripMenuItem2 = new() { Text = "&Test2" }; 244using ToolStripMenuItem toolStripMenuItem1 = new() { Text = "&Test1" }; 245using ToolStripMenuItem toolStripMenuItem2 = new() { Text = "&Test2" }; 289using ToolStripMenuItem toolStripMenuItem1 = new() { Text = "&Test1" }; 290using ToolStripMenuItem toolStripMenuItem2 = new() { Text = "&Test2" };
System\Windows\Forms\MenuStripTests.cs (1)
307yield return new object[] { new ToolStripMenuItem() };
System\Windows\Forms\ToolStripDropDownTests.cs (1)
4883ToolStripMenuItem toolStrip = new();
System\Windows\Forms\ToolStripItemCollectionTests.cs (12)
17using ToolStripMenuItem toolStrip = new(); 19ToolStripMenuItem child1 = new() 23ToolStripMenuItem child2 = new() 27ToolStripMenuItem child3 = new() 32ToolStripMenuItem grandchild1 = new() 36ToolStripMenuItem grandchild2 = new() 40ToolStripMenuItem grandchild3 = new() 72using ToolStripMenuItem toolStrip = new(); 74ToolStripMenuItem child1 = new() 78ToolStripMenuItem child2 = new() 82ToolStripMenuItem child3 = new() 99using ToolStripMenuItem toolStrip = new();
System\Windows\Forms\ToolStripItemTests.cs (3)
15396using ToolStripMenuItem toolStripMenuItem1 = new(); 15397using ToolStripMenuItem toolStripMenuItem2 = new(); 15398using ToolStripMenuItem toolStripMenuItem3 = new();
System\Windows\Forms\ToolStripMenuItemTests.cs (11)
194using ToolStripMenuItem itemWithImage = new(image); 198using ToolStripMenuItem itemWithTextAndImage = new(text, image); 212using ToolStripMenuItem item = new(text, image, onClick, name); 230using ToolStripMenuItem item = new(text, image, onClick, shortcutKeys); 244ToolStripItem[] dropDownItems = [new ToolStripMenuItem("SubItem1"), new ToolStripMenuItem("SubItem2")]; 246using ToolStripMenuItem item = new(text, image, dropDownItems); 267using ToolStripMenuItem original = new() 359using ToolStripMenuItem item = new(); 376using ToolStripMenuItem item = new(); 393using ToolStripMenuItem item = new();
System\Windows\Forms\ToolStripSplitButtonTests.cs (2)
157using ToolStripMenuItem item1 = new("Item1"); 158using ToolStripMenuItem item2 = new("Item2");
System\Windows\Forms\ToolStripTests.cs (5)
7292using ToolStripMenuItem toolStripMenuItem1 = new(); 7293using ToolStripMenuItem toolStripMenuItem2 = new(); 7294using ToolStripMenuItem toolStripMenuItem3 = new(); 7343using ToolStripMenuItem toolStripMenuItem = new(nameof(toolStripMenuItem)); 7344using ToolStripMenuItem listToolStripMenuItem = new(nameof(listToolStripMenuItem));
System.Windows.Forms.UI.IntegrationTests (8)
DragDropTests.cs (1)
1052ToolStripItem dragAcceptItem = new ToolStripMenuItem()
MenuStripTests.cs (3)
16using ToolStripMenuItem toolStripMenuItem1 = new(); 17using ToolStripMenuItem toolStripMenuItem2 = new() { CheckOnClick = true }; 18using ToolStripMenuItem toolStripMenuItem3 = new();
ToolStripTests.cs (4)
69using ToolStripMenuItem menu1 = new("Menu1"); 70using ToolStripMenuItem menu1Item1 = new("Item1"); 73using ToolStripMenuItem hiddenMenu = new("hiddenMenu"); 74using ToolStripMenuItem hiddenMenuItem1 = new("hiddenMenuItem1");
WinFormsControlsTest (45)
DragDrop.cs (3)
471ToolStripItem dragAcceptItem = new ToolStripMenuItem() 482ToolStripItem nyanCatItem = new ToolStripMenuItem() 493ToolStripItem asciiCatItem = new ToolStripMenuItem()
MdiChild.cs (2)
16_menuStrip.Items.Add(new ToolStripMenuItem { Text = "Child1" }); 17_menuStrip.Items.Add(new ToolStripMenuItem
MdiParent.cs (2)
19ToolStripMenuItem menu = new() { Text = "Open new child" }; 35ToolStripMenuItem item = new()
MenuStripAndCheckedListBox.Designer.cs (22)
35this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 36this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 37this.openToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); 39this.memoryCardFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 40this.navigationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 41this.newToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); 42this.settingsEditorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 43this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 44this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 45this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 46this.exitToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); 48this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 49this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 50this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 51this.insertToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 52this.checkStateSamplesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 53this.uncheckedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 54this.uncheckedCheckOnClickToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 55this.checkedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 56this.checkedCheckOnClickToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 57this.indeterminateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 58this.indeterminateCheckOnClickToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
ToolStripTests.Designer.cs (16)
52this.toolStrip2_DropDownButton1_ChildButton1 = new System.Windows.Forms.ToolStripMenuItem(); 53this.toolStrip2_DropDownButton1_ChildButton2 = new System.Windows.Forms.ToolStripMenuItem(); 54this.toolStrip2_SplitButton1_ChildButton1 = new System.Windows.Forms.ToolStripMenuItem(); 55this.toolStrip2_SplitButton1_ChildButton2 = new System.Windows.Forms.ToolStripMenuItem(); 57this.toolStrip3_MenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); 58this.toolStrip3_MenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); 61this.toolStrip4_MenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); 62this.toolStrip4_SubMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 63this.uncheckedCheckOnClickToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 64this.thirdLevelItem = new System.Windows.Forms.ToolStripMenuItem(); 66this.checkCheckOnClickToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 67this.checkedCheckOnClickFToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 68this.indeterminateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 69this.indeterminateCheckOnClickFToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 74this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); 75this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
403 references to ToolStripMenuItem
Accessibility_Core_App (62)
Menu_Toolbars_controls.Designer.cs (35)
617private ToolStripMenuItem fileToolStripMenuItem; 618private ToolStripMenuItem newToolStripMenuItem; 619private ToolStripMenuItem openToolStripMenuItem; 621private ToolStripMenuItem saveToolStripMenuItem; 622private ToolStripMenuItem saveAsToolStripMenuItem; 624private ToolStripMenuItem printToolStripMenuItem; 625private ToolStripMenuItem printPreviewToolStripMenuItem; 627private ToolStripMenuItem exitToolStripMenuItem; 628private ToolStripMenuItem editToolStripMenuItem; 629private ToolStripMenuItem undoToolStripMenuItem; 630private ToolStripMenuItem redoToolStripMenuItem; 632private ToolStripMenuItem cutToolStripMenuItem; 633private ToolStripMenuItem copyToolStripMenuItem; 634private ToolStripMenuItem pasteToolStripMenuItem; 636private ToolStripMenuItem selectAllToolStripMenuItem; 637private ToolStripMenuItem toolsToolStripMenuItem; 638private ToolStripMenuItem customizeToolStripMenuItem; 639private ToolStripMenuItem optionsToolStripMenuItem; 640private ToolStripMenuItem helpToolStripMenuItem; 641private ToolStripMenuItem contentsToolStripMenuItem; 642private ToolStripMenuItem indexToolStripMenuItem; 643private ToolStripMenuItem searchToolStripMenuItem; 645private ToolStripMenuItem aboutToolStripMenuItem; 653private ToolStripMenuItem menuStripToolStripMenuItem; 654private ToolStripMenuItem shortCutsToolStripMenuItem; 655private ToolStripMenuItem toolStripMenuItem1; 657private ToolStripMenuItem item1ToolStripMenuItem; 658private ToolStripMenuItem item2ToolStripMenuItem; 662private ToolStripMenuItem toolStripMenuItem3; 666private ToolStripMenuItem toolStripMenuItem2; 668private ToolStripMenuItem uncheckedCheckOnClickToolStripMenuItem; 669private ToolStripMenuItem checkCheckOnClickToolStripMenuItem; 670private ToolStripMenuItem checkedCheckOnClickFToolStripMenuItem; 671private ToolStripMenuItem indeterminateToolStripMenuItem; 672private ToolStripMenuItem indeterminateCheckOnClickFToolStripMenuItem;
ToolStripContainer.Designer.cs (27)
622private System.Windows.Forms.ToolStripMenuItem toolStripToolStripMenuItem; 625private System.Windows.Forms.ToolStripMenuItem statusStripToolStripMenuItem; 630private System.Windows.Forms.ToolStripMenuItem menuStripToolStripMenuItem; 631private System.Windows.Forms.ToolStripMenuItem menuStripItem1ToolStripMenuItem; 643private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; 644private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem; 645private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem; 647private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem; 648private System.Windows.Forms.ToolStripMenuItem saveAsToolStripMenuItem; 650private System.Windows.Forms.ToolStripMenuItem printToolStripMenuItem; 651private System.Windows.Forms.ToolStripMenuItem printPreviewToolStripMenuItem; 653private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; 654private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem; 655private System.Windows.Forms.ToolStripMenuItem undoToolStripMenuItem; 656private System.Windows.Forms.ToolStripMenuItem redoToolStripMenuItem; 658private System.Windows.Forms.ToolStripMenuItem cutToolStripMenuItem; 659private System.Windows.Forms.ToolStripMenuItem copyToolStripMenuItem; 660private System.Windows.Forms.ToolStripMenuItem pasteToolStripMenuItem; 662private System.Windows.Forms.ToolStripMenuItem selectAllToolStripMenuItem; 663private System.Windows.Forms.ToolStripMenuItem toolsToolStripMenuItem; 664private System.Windows.Forms.ToolStripMenuItem customizeToolStripMenuItem; 665private System.Windows.Forms.ToolStripMenuItem optionsToolStripMenuItem; 666private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem; 667private System.Windows.Forms.ToolStripMenuItem contentsToolStripMenuItem; 668private System.Windows.Forms.ToolStripMenuItem indexToolStripMenuItem; 669private System.Windows.Forms.ToolStripMenuItem searchToolStripMenuItem; 671private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;
DesignSurface (17)
MainForm.cs (5)
302ToolStripMenuItem toolStripMenuItem1 = new("TopMenuItem1"); 303ToolStripMenuItem toolStripMenuItem2 = new("TopMenuItem2"); 304ToolStripMenuItem menu1 = new("BottomMenuItem1"); 305ToolStripMenuItem menuNew1 = new("BottomMenuItem2"); 488isurf?.DoAction((sender as ToolStripMenuItem).Text);
MainForm.Designer.cs (12)
321private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem; 322private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItemUnDo; 323private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItemReDo; 325private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItemCut; 326private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItemCopy; 327private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItemPaste; 329private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItemDelete; 330private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItemKeyInvokeSmartTag; 331private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem; 332private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItemAbout; 340private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemTools; 341private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemTabOrder;
System.Windows.Forms (91)
System\Windows\Forms\ContextMenuStrip.cs (1)
72else if (item is ToolStripMenuItem toolStripMenuItem)
System\Windows\Forms\Controls\Menus\MenuStrip.cs (2)
13private ToolStripMenuItem? _mdiWindowListItem; 133public ToolStripMenuItem? MdiWindowListItem
System\Windows\Forms\Controls\Menus\MenuTimer.cs (10)
9private ToolStripMenuItem? _fromItem; 27private ToolStripMenuItem? CurrentItem { get; set; } 35public void Start(ToolStripMenuItem item) 45private void StartCore(ToolStripMenuItem? item) 61public void Transition(ToolStripMenuItem fromItem, ToolStripMenuItem? toItem) 97public void Cancel(ToolStripMenuItem? item) 118ToolStripMenuItem? lastSelected = _fromItem; 149ToolStripMenuItem? menuItem = toolStrip.ActiveDropDowns[0].OwnerItem as ToolStripMenuItem;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (8)
52private Dictionary<Keys, ToolStripMenuItem>? _shortcuts; 1647internal Dictionary<Keys, ToolStripMenuItem> Shortcuts 1651_shortcuts ??= new Dictionary<Keys, ToolStripMenuItem>(1); 1762if (nextItem is ToolStripMenuItem tsNextItem && !IsDropDown) 2457ToolStripMenuItem.MenuTimer.HandleToolStripMouseLeave(this); 2906foundMenuItem = (foundMenuItem || (currentItem is ToolStripMenuItem)); 2957if (!(currentItem is ToolStripMenuItem) || string.IsNullOrEmpty(currentItem.Text) || !currentItem.Enabled) 3041ToolStripMenuItem.MenuTimer.Cancel();
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (2)
176/// Raises the <see cref="ToolStripMenuItem.CheckedChanged"/> event. 182/// Raises the <see cref="ToolStripMenuItem.CheckStateChanged"/> event.
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1289ToolStripMenuItem.MenuTimer.Cancel();
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (2)
262((ToolStripMenuItem)itemToAdd).DropDown = FromHMenu(info.hSubMenu, targetWindow); 286if (item is ToolStripMenuItem menuItem)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (4)
184if (e.Item is ToolStripMenuItem menuItem && !e.Item.IsOnDropDown && (menuItem.Checked || menuItem.Selected)) 240|| (typeof(ToolStripMenuItem).IsAssignableFrom(e.Item.GetType()) 241&& ((ToolStripMenuItem)e.Item).DisplayStyle != ToolStripItemDisplayStyle.Image 243&& ((ToolStripMenuItem)e.Item).Checked))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (2)
171if (_ownerItem.Selected && _ownerItem is ToolStripMenuItem) 178if (_ownerItem.Selected && _ownerItem is ToolStripMenuItem)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
777&& activeControlInChain.ContextMenuStrip.Shortcuts.TryGetValue(shortcut, out ToolStripMenuItem? item) 869if (toolStrip.Shortcuts.TryGetValue(shortcut, out ToolStripMenuItem? item)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (5)
166MenuTimer.Transition(this, otherItemBeingSelected as ToolStripMenuItem); 273typeof(ToolStripMenuItem), 277typeof(ToolStripMenuItem), 482internal ToolStripMenuItem Clone() 486ToolStripMenuItem menuItem = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemAccessibleObject.cs (2)
16private readonly ToolStripMenuItem _owningToolStripMenuItem; 18public ToolStripMenuItemAccessibleObject(ToolStripMenuItem ownerItem) : base(ownerItem)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (2)
13private readonly ToolStripMenuItem _ownerItem; 15public ToolStripMenuItemInternalLayout(ToolStripMenuItem ownerItem)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (5)
660else if (item is ToolStripMenuItem menuItem && menuItem.CheckState == CheckState.Checked) 715if (e.Item is ToolStripMenuItem && (e.Item.Selected || e.Item.Pressed)) 746if (e.Item is ToolStripMenuItem) 748ToolStripMenuItem? item = e.Item as ToolStripMenuItem;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (2)
411ToolStripMenuItem? item = e.Item as ToolStripMenuItem;
System\Windows\Forms\MDI\MDIControlStrip.cs (5)
14private readonly ToolStripMenuItem _system; 15private readonly ToolStripMenuItem _close; 16private readonly ToolStripMenuItem _minimize; 17private readonly ToolStripMenuItem _restore; 74public ToolStripMenuItem Close => _close;
System\Windows\Forms\MDI\MdiWindowListStrip.cs (7)
12private ToolStripMenuItem? _mergeItem; 29internal ToolStripMenuItem MergeItem 67public void PopulateItems(Form mdiParent, ToolStripMenuItem mdiMergeItem, bool includeSeparator) 74ToolStripMenuItem mergeItem = MergeItem; 113ToolStripMenuItem windowListItem = new(mdiParent.MdiChildren[i]) 139ToolStripMenuItem moreWindowsMenuItem = new ToolStripMenuItem 183if (sender is ToolStripMenuItem windowListItem)
System\Windows\Forms\Printing\PrintPreviewDialog.cs (29)
27private ToolStripMenuItem _autoToolStripMenuItem; 28private ToolStripMenuItem _toolStripMenuItem1; 29private ToolStripMenuItem _toolStripMenuItem2; 30private ToolStripMenuItem _toolStripMenuItem3; 31private ToolStripMenuItem _toolStripMenuItem4; 32private ToolStripMenuItem _toolStripMenuItem5; 33private ToolStripMenuItem _toolStripMenuItem6; 34private ToolStripMenuItem _toolStripMenuItem7; 35private ToolStripMenuItem _toolStripMenuItem8; 1068private void CheckZoomMenu(ToolStripMenuItem? toChecked) 1070foreach (ToolStripMenuItem item in _zoomToolStripSplitButton.DropDownItems) 1078ToolStripMenuItem? item = sender as ToolStripMenuItem; 1085ToolStripMenuItem? item = sender as ToolStripMenuItem; 1092ToolStripMenuItem? item = sender as ToolStripMenuItem; 1099ToolStripMenuItem? item = sender as ToolStripMenuItem; 1106ToolStripMenuItem? item = sender as ToolStripMenuItem; 1113ToolStripMenuItem? item = sender as ToolStripMenuItem; 1120ToolStripMenuItem? item = sender as ToolStripMenuItem; 1127ToolStripMenuItem? item = sender as ToolStripMenuItem; 1134ToolStripMenuItem? item = sender as ToolStripMenuItem;
System.Windows.Forms.Design (88)
System\Windows\Forms\Design\BaseContextMenuStrip.cs (2)
19private ToolStripMenuItem? _selectionMenuItem; 136ToolStripMenuItem selectListItem = new SelectToolStripMenuItem(parent, _serviceProvider);
System\Windows\Forms\Design\StandardCommandToolStripMenuItem.cs (1)
87_image = new Icon(typeof(ToolStripMenuItem), _name).ToBitmap();
System\Windows\Forms\Design\StandardMenuStripVerb.cs (16)
125ToolStripMenuItem rootItem = null; 132name = NameFromText(itemText, typeof(ToolStripMenuItem), nameCreationService, true); 149item = (ToolStripMenuItem)_host.CreateComponent(typeof(ToolStripMenuItem), name); 158if ((item is ToolStripMenuItem menuItem) && shortcut != Keys.None) 189rootItem = (ToolStripMenuItem)item; 410image = new Icon(typeof(ToolStripMenuItem), "new").ToBitmap(); 414image = new Icon(typeof(ToolStripMenuItem), "open").ToBitmap(); 418image = new Icon(typeof(ToolStripMenuItem), "save").ToBitmap(); 422image = new Icon(typeof(ToolStripMenuItem), "printPreview").ToBitmap(); 426image = new Icon(typeof(ToolStripMenuItem), "print").ToBitmap(); 430image = new Icon(typeof(ToolStripMenuItem), "cut").ToBitmap(); 434image = new Icon(typeof(ToolStripMenuItem), "copy").ToBitmap(); 438image = new Icon(typeof(ToolStripMenuItem), "paste").ToBitmap(); 442image = new Icon(typeof(ToolStripMenuItem), "help").ToBitmap(); 483string nameOfRandomItem = ToolStripDesigner.NameFromText(null, typeof(ToolStripMenuItem), _designer.Component.Site);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (20)
48private ToolStripMenuItem _contextMenuRow; 49private ToolStripMenuItem _contextMenuCol; 307ToolStripMenuItem add = new(); 308ToolStripMenuItem insert = new(); 309ToolStripMenuItem delete = new(); 312ToolStripMenuItem absolute = new(); 313ToolStripMenuItem percent = new(); 314ToolStripMenuItem autosize = new(); 1603((ToolStripMenuItem)menu.Items["absolute"]).Checked = false; 1604((ToolStripMenuItem)menu.Items["percent"]).Checked = false; 1605((ToolStripMenuItem)menu.Items["autosize"]).Checked = false; 1611((ToolStripMenuItem)menu.Items["absolute"]).Checked = true; 1614((ToolStripMenuItem)menu.Items["percent"]).Checked = true; 1617((ToolStripMenuItem)menu.Items["autosize"]).Checked = true; 1668private void OnAddClick(object sender, EventArgs e) => OnAdd((bool)((ToolStripMenuItem)sender).Tag); // Tag = isRow 1754bool isRow = (bool)((ToolStripMenuItem)sender).Tag; 1937bool isRow = (bool)((ToolStripMenuItem)sender).Tag; 2042private void OnAbsoluteClick(object sender, EventArgs e) => ChangeSizeType((bool)((ToolStripMenuItem)sender).Tag, SizeType.Absolute); 2044private void OnPercentClick(object sender, EventArgs e) => ChangeSizeType((bool)((ToolStripMenuItem)sender).Tag, SizeType.Percent); 2046private void OnAutoSizeClick(object sender, EventArgs e) => ChangeSizeType((bool)((ToolStripMenuItem)sender).Tag, SizeType.AutoSize);
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
19private ToolStripMenuItem _insertToolStripMenuItem;
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1642string nameOfRandomItem = NameFromText(null, typeof(ToolStripMenuItem), 2429ToolStripItem newItem = AddNewItem(typeof(ToolStripMenuItem));
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (4)
49[typeof(ToolStripMenuItem), typeof(ToolStripComboBox), typeof(ToolStripTextBox)]; 52[typeof(ToolStripMenuItem), typeof(ToolStripComboBox), typeof(ToolStripSeparator), typeof(ToolStripTextBox)]; 62if (item is ToolStripMenuItem && item.IsOnDropDown) 71else if (item is ToolStripMenuItem && !item.IsOnDropDown)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (3)
22private ToolStripMenuItem _menuItem; 28internal ToolStripMenuItem _currentParent; 84public ToolStripMenuItem DesignerMenuItem
System\Windows\Forms\Design\ToolStripInSituService.cs (2)
133ToolStripMenuItem toolItem = designer.DesignerMenuItem; 154else if (comp is ToolStripMenuItem)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
199if (_selectedGlyph is not null && _selectedGlyph.Item is ToolStripMenuItem) 367if (selectedItem is ToolStripMenuItem)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (29)
20private ToolStripMenuItem _imageToolStripMenuItem; 21private ToolStripMenuItem _enabledToolStripMenuItem; 23private ToolStripMenuItem _isLinkToolStripMenuItem; 24private ToolStripMenuItem _springToolStripMenuItem; 26private ToolStripMenuItem _checkedToolStripMenuItem; 27private ToolStripMenuItem _showShortcutKeysToolStripMenuItem; 29private ToolStripMenuItem _alignmentToolStripMenuItem; 30private ToolStripMenuItem _displayStyleToolStripMenuItem; 34private ToolStripMenuItem _convertToolStripMenuItem; 35private ToolStripMenuItem _insertToolStripMenuItem; 37private ToolStripMenuItem _leftToolStripMenuItem; 38private ToolStripMenuItem _rightToolStripMenuItem; 40private ToolStripMenuItem _noneStyleToolStripMenuItem; 41private ToolStripMenuItem _textStyleToolStripMenuItem; 42private ToolStripMenuItem _imageStyleToolStripMenuItem; 43private ToolStripMenuItem _imageTextStyleToolStripMenuItem; 45private ToolStripMenuItem _editItemsToolStripMenuItem; 66private ToolStripMenuItem CreatePropertyBasedItem(string text, string propertyName, string imageName) 68ToolStripMenuItem item = new(text); 75item.Image = new Icon(typeof(ToolStripMenuItem), imageName).ToBitmap(); 92private ToolStripMenuItem CreateEnumValueItem(string propertyName, string name, object value) 94ToolStripMenuItem item = new(name) 103private ToolStripMenuItem CreateBooleanItem(string text, string propertyName) 105ToolStripMenuItem item = new(text); 123Image = new Icon(typeof(ToolStripMenuItem), "image").ToBitmap(), 132if (selectedItem is ToolStripMenuItem) 218_editItemsToolStripMenuItem.Image = new Icon(typeof(ToolStripMenuItem), "editdropdownlist").ToBitmap(); 312if (_currentItem is ToolStripMenuItem) 641if (selectedItem is ToolStripMenuItem)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
983if (currentSelection is not null && currentSelection.Equals(ToolStripItem) && !(ToolStripItem is ToolStripMenuItem)) 1209if (ToolStripItem is ToolStripMenuItem)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
929if (comp is ToolStripMenuItem)
System\Windows\Forms\Design\ToolStripMenuItemCodeDomSerializer.cs (1)
37if (value is ToolStripMenuItem { IsOnDropDown: false } item)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
1279newDummyItem = CreateDummyItem(typeof(ToolStripMenuItem), index); 1591designer._currentParent = MenuItem as ToolStripMenuItem;
System.Windows.Forms.Design.Tests (23)
Mocks\MockSite.cs (1)
49.Setup(s => s.GetService(typeof(ToolStripMenuItem)))
System\Windows\Forms\Design\BaseContextMenuStripTests.cs (2)
30foreach (var item in contextMenuStrip.Items.OfType<ToolStripMenuItem>())
System\Windows\Forms\Design\ContextMenuStripGroupTests.cs (4)
38ToolStripMenuItem newItem = new("Test Item"); 50ToolStripMenuItem newItem1 = new("Test Item1"); 51ToolStripMenuItem newItem2 = new("Test Item2"); 65ToolStripMenuItem newItem = new("Test Item");
System\Windows\Forms\Design\CustomMenuItemCollectionTests.cs (4)
19ToolStripMenuItem item = new("TestItem"); 30ToolStripMenuItem[] items = 46ToolStripMenuItem[] items = []; 57ToolStripMenuItem[] items =
TestControlDesigner.Mocks.cs (1)
81.Setup(s => s.GetService(typeof(ToolStripMenuItem)))
ToolStripDropDownItemDesignerTest.cs (1)
12ToolStripMenuItem toolStripDropDown = new();
ToolStripMenuItemDesignerTest.cs (10)
19ToolStripMenuItem toolStripDropDown = new(); 35ToolStripMenuItem toolStripMenuItem = new(); 45ToolStripMenuItem toolStripDropDown = new(); 56ToolStripMenuItem toolStripMenuItem = new(); 67ToolStripMenuItem toolStripMenuItem = new(); 77ToolStripMenuItem toolStripMenuItem = new(); 87ToolStripMenuItem toolStripMenuItem = new(); 97ToolStripMenuItem toolStripMenuItem = new(); 110PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(typeof(ToolStripMenuItem)); 126ToolStripMenuItem toolStripMenuItem = new();
System.Windows.Forms.Tests (75)
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (2)
265using ToolStripMenuItem menuItem = new(); 299using ToolStripMenuItem menuItem = new();
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (16)
6using static System.Windows.Forms.ToolStripMenuItem; 15using ToolStripMenuItem toolStripMenuItem = new(); 30using ToolStripMenuItem item1 = new(); 51using ToolStripMenuItem item1 = new(); 70using ToolStripMenuItem toolStripMenuItem = new(); 81using ToolStripMenuItem toolStripMenuItem = new(); 108using ToolStripMenuItem toolStripMenuItem = new(); 120using ToolStripMenuItem toolStripMenuItem = new(); 132using ToolStripMenuItem item1 = new(); 147using ToolStripMenuItem item2 = new(); 160using ToolStripMenuItem toolStripMenuItem = new(); 172using ToolStripMenuItem item1 = new(); 187using ToolStripMenuItem item2 = new(); 206using ToolStripMenuItem toolStripMenuItem = new() 223using ToolStripMenuItem toolStripMenuItem = new() 236using ToolStripMenuItem toolStripMenuItem = new()
System\Windows\Forms\MdiControlStripTests.cs (15)
162ToolStripMenuItem system = mdiControlStrip.TestAccessor().Dynamic._system; 163ToolStripMenuItem close = mdiControlStrip.TestAccessor().Dynamic._close; 164ToolStripMenuItem minimize = mdiControlStrip.TestAccessor().Dynamic._minimize; 165ToolStripMenuItem restore = mdiControlStrip.TestAccessor().Dynamic._restore; 178ToolStripMenuItem[] items = 186foreach (ToolStripMenuItem item in items) 198using ToolStripMenuItem toolStripMenuItem1 = new() { Text = "&Test1" }; 199using ToolStripMenuItem toolStripMenuItem2 = new() { Text = "&Test2" }; 201menuStrip.Items.AddRange((ToolStripMenuItem[])[toolStripMenuItem1, toolStripMenuItem2]); 244using ToolStripMenuItem toolStripMenuItem1 = new() { Text = "&Test1" }; 245using ToolStripMenuItem toolStripMenuItem2 = new() { Text = "&Test2" }; 247menuStrip.Items.AddRange((ToolStripMenuItem[])[toolStripMenuItem1, toolStripMenuItem2]); 289using ToolStripMenuItem toolStripMenuItem1 = new() { Text = "&Test1" }; 290using ToolStripMenuItem toolStripMenuItem2 = new() { Text = "&Test2" }; 292menuStrip.Items.AddRange((ToolStripMenuItem[])[toolStripMenuItem1, toolStripMenuItem2]);
System\Windows\Forms\MenuStripTests.cs (3)
312public void MenuStrip_MdiWindowListItem_Set_GetReturnsExpected(ToolStripMenuItem value) 450ToolStripMenuItem item = Assert.IsType<ToolStripMenuItem>(control.CreateDefaultItem(text, image, onClick));
System\Windows\Forms\ToolStripDropDownTests.cs (1)
4883ToolStripMenuItem toolStrip = new();
System\Windows\Forms\ToolStripItemCollectionTests.cs (16)
17using ToolStripMenuItem toolStrip = new(); 19ToolStripMenuItem child1 = new() 23ToolStripMenuItem child2 = new() 27ToolStripMenuItem child3 = new() 32ToolStripMenuItem grandchild1 = new() 36ToolStripMenuItem grandchild2 = new() 40ToolStripMenuItem grandchild3 = new() 53Assert.Equal(new ToolStripMenuItem[] { child2, child3, grandchild2, grandchild3 }, collection.Find(key, searchAllChildren: true)); 56Assert.Equal(new ToolStripMenuItem[] { child2, child3, grandchild2, grandchild3 }, collection.Find(key, searchAllChildren: true)); 59Assert.Equal(new ToolStripMenuItem[] { child2, child3 }, collection.Find(key, searchAllChildren: false)); 62Assert.Equal(new ToolStripMenuItem[] { child2, child3 }, collection.Find(key, searchAllChildren: false)); 72using ToolStripMenuItem toolStrip = new(); 74ToolStripMenuItem child1 = new() 78ToolStripMenuItem child2 = new() 82ToolStripMenuItem child3 = new() 99using ToolStripMenuItem toolStrip = new();
System\Windows\Forms\ToolStripItemTests.cs (4)
15396using ToolStripMenuItem toolStripMenuItem1 = new(); 15397using ToolStripMenuItem toolStripMenuItem2 = new(); 15398using ToolStripMenuItem toolStripMenuItem3 = new(); 15412menuStrip1.Items.AddRange(new ToolStripMenuItem[] { toolStripMenuItem1, toolStripMenuItem2, toolStripMenuItem3 });
System\Windows\Forms\ToolStripMenuItemTests.cs (11)
194using ToolStripMenuItem itemWithImage = new(image); 198using ToolStripMenuItem itemWithTextAndImage = new(text, image); 212using ToolStripMenuItem item = new(text, image, onClick, name); 230using ToolStripMenuItem item = new(text, image, onClick, shortcutKeys); 246using ToolStripMenuItem item = new(text, image, dropDownItems); 259using ToolStripMenuItem itemWithoutMdiForm = new(mdiForm1!); 267using ToolStripMenuItem original = new() 311using ToolStripMenuItem clone = original.Clone(); 359using ToolStripMenuItem item = new(); 376using ToolStripMenuItem item = new(); 393using ToolStripMenuItem item = new();
System\Windows\Forms\ToolStripSplitButtonTests.cs (2)
157using ToolStripMenuItem item1 = new("Item1"); 158using ToolStripMenuItem item2 = new("Item2");
System\Windows\Forms\ToolStripTests.cs (5)
7292using ToolStripMenuItem toolStripMenuItem1 = new(); 7293using ToolStripMenuItem toolStripMenuItem2 = new(); 7294using ToolStripMenuItem toolStripMenuItem3 = new(); 7343using ToolStripMenuItem toolStripMenuItem = new(nameof(toolStripMenuItem)); 7344using ToolStripMenuItem listToolStripMenuItem = new(nameof(listToolStripMenuItem));
System.Windows.Forms.UI.IntegrationTests (7)
MenuStripTests.cs (3)
16using ToolStripMenuItem toolStripMenuItem1 = new(); 17using ToolStripMenuItem toolStripMenuItem2 = new() { CheckOnClick = true }; 18using ToolStripMenuItem toolStripMenuItem3 = new();
ToolStripTests.cs (4)
69using ToolStripMenuItem menu1 = new("Menu1"); 70using ToolStripMenuItem menu1Item1 = new("Item1"); 73using ToolStripMenuItem hiddenMenu = new("hiddenMenu"); 74using ToolStripMenuItem hiddenMenuItem1 = new("hiddenMenuItem1");
WinFormsControlsTest (40)
MdiParent.cs (2)
19ToolStripMenuItem menu = new() { Text = "Open new child" }; 35ToolStripMenuItem item = new()
MenuStripAndCheckedListBox.Designer.cs (22)
304private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; 305private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem; 306private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem1; 308private System.Windows.Forms.ToolStripMenuItem memoryCardFileToolStripMenuItem; 309private System.Windows.Forms.ToolStripMenuItem navigationToolStripMenuItem; 310private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem1; 311private System.Windows.Forms.ToolStripMenuItem settingsEditorToolStripMenuItem; 312private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem; 313private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem; 314private System.Windows.Forms.ToolStripMenuItem saveAsToolStripMenuItem; 315private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem1; 317private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; 318private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem; 319private System.Windows.Forms.ToolStripMenuItem viewToolStripMenuItem; 320private System.Windows.Forms.ToolStripMenuItem insertToolStripMenuItem; 321private System.Windows.Forms.ToolStripMenuItem checkStateSamplesToolStripMenuItem; 322private System.Windows.Forms.ToolStripMenuItem uncheckedToolStripMenuItem; 323private System.Windows.Forms.ToolStripMenuItem uncheckedCheckOnClickToolStripMenuItem; 324private System.Windows.Forms.ToolStripMenuItem checkedToolStripMenuItem; 325private System.Windows.Forms.ToolStripMenuItem checkedCheckOnClickToolStripMenuItem; 326private System.Windows.Forms.ToolStripMenuItem indeterminateToolStripMenuItem; 327private System.Windows.Forms.ToolStripMenuItem indeterminateCheckOnClickToolStripMenuItem;
ToolStripTests.Designer.cs (16)
489private System.Windows.Forms.ToolStripMenuItem toolStrip2_DropDownButton1_ChildButton1; 490private System.Windows.Forms.ToolStripMenuItem toolStrip2_DropDownButton1_ChildButton2; 491private System.Windows.Forms.ToolStripMenuItem toolStrip2_SplitButton1_ChildButton1; 492private System.Windows.Forms.ToolStripMenuItem toolStrip2_SplitButton1_ChildButton2; 493private System.Windows.Forms.ToolStripMenuItem toolStrip3_MenuItem1; 494private System.Windows.Forms.ToolStripMenuItem toolStrip3_MenuItem2; 495private System.Windows.Forms.ToolStripMenuItem toolStrip4_MenuItem1; 496private System.Windows.Forms.ToolStripMenuItem toolStrip4_SubMenuItem; 497private System.Windows.Forms.ToolStripMenuItem thirdLevelItem; 498private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; 499private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; 500private System.Windows.Forms.ToolStripMenuItem uncheckedCheckOnClickToolStripMenuItem; 501private System.Windows.Forms.ToolStripMenuItem checkCheckOnClickToolStripMenuItem; 502private System.Windows.Forms.ToolStripMenuItem checkedCheckOnClickFToolStripMenuItem; 503private System.Windows.Forms.ToolStripMenuItem indeterminateToolStripMenuItem; 504private System.Windows.Forms.ToolStripMenuItem indeterminateCheckOnClickFToolStripMenuItem;