9 instantiations of MenuItem
System.Windows.Forms.Tests (6)
System\Windows\Forms\UnsupportedTypesTests.cs (6)
46() => new MenuItem(), 47() => new MenuItem(text: "text"), 48() => new MenuItem(text: "text", onClick: null!), 49() => new MenuItem(text: "text", onClick: null!, Shortcut.Alt0), 50() => new MenuItem(text: "text", items: null!), 51() => new MenuItem(MenuMerge.Add, mergeOrder: 1, Shortcut.Alt0, text: "text", onClick: null!, onPopup: null!, onSelect: null, items: null!),
UnsupportedTypes (3)
CreateFrameworkTypes.cs (3)
36_menuItem1 = new("Item1", OnClick); 47void ContextMenu_Popup(object sender, EventArgs e) => _contextMenu.MenuItems.Add(new MenuItem("Item3")); 54MenuItem fileMenuItem = new("MainMenuItem", (s, e) => MessageBox.Show("New menu item clicked", "MainMenu"));
27 references to MenuItem
System.Windows.Forms (24)
System\Windows\Forms\Controls\Unsupported\ContextMenu\ContextMenu.cs (1)
25public ContextMenu(MenuItem[] menuItems) : base(items: menuItems) => throw new PlatformNotSupportedException();
System\Windows\Forms\Controls\Unsupported\ContextMenu\Menu.cs (3)
27protected Menu(MenuItem[] items) => throw new PlatformNotSupportedException(); 40public MenuItem MdiListItem => throw null; 69public MenuItem FindMenuItem(int type, IntPtr value) => throw null;
System\Windows\Forms\Controls\Unsupported\ContextMenu\Menu.MenuItemCollection.cs (13)
28public virtual MenuItem this[int index] => throw null; 36public virtual MenuItem this[string key] => throw null; 48public virtual MenuItem Add(string caption) => throw null; 50public virtual MenuItem Add(string caption, EventHandler onClick) => throw null; 52public virtual MenuItem Add(string caption, MenuItem[] items) => throw null; 54public virtual int Add(MenuItem item) => throw null; 56public virtual int Add(int index, MenuItem item) => throw null; 58public virtual void AddRange(MenuItem[] items) { } 62public bool Contains(MenuItem value) => throw null; 72public MenuItem[] Find(string key, bool searchAllChildren) => throw null; 74public int IndexOf(MenuItem value) => throw null; 88public virtual void Remove(MenuItem item) { }
System\Windows\Forms\Controls\Unsupported\ContextMenu\MenuItem.cs (6)
66public MenuItem(string text, MenuItem[] items) : this( 84MenuItem[] items) : base(items: items) => throw new PlatformNotSupportedException(); 247public virtual MenuItem CloneMenu() => throw null; 249protected void CloneMenu(MenuItem itemSrc) { } 251public virtual MenuItem MergeMenu() => throw null; 253public void MergeMenu(MenuItem itemSrc) { }
System\Windows\Forms\Controls\Unsupported\MainMenu\MainMenu.cs (1)
27public MainMenu(MenuItem[] items) : base(items: items) => throw new PlatformNotSupportedException();
UnsupportedTypes (3)
CreateFrameworkTypes.cs (3)
17private MenuItem _menuItem1; 18private MenuItem _menuItem2; 54MenuItem fileMenuItem = new("MainMenuItem", (s, e) => MessageBox.Show("New menu item clicked", "MainMenu"));