2 writes to _menuItem
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
286_menuItem = null; 391_menuItem = new ToolStripMenuItem
33 references to _menuItem
System.Windows.Forms.Design (33)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (33)
86get => _menuItem; 131if (_menuItem is not null && _designMenu is not null && value != RightToLeft) 137_menuItem.HideDropDown(); 148ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(_menuItem); 277if (_menuItem is not null) 285_menuItem.Dispose(); 294if (_menuItem is null) 306_menuItem.DropDown.AutoClose = true; 307_menuItem.HideDropDown(); 308_menuItem.Visible = false; 334if (_menuItem is not null) 336if (_host.GetDesigner(_menuItem) is ToolStripMenuItemDesigner itemDesigner) 339itemDesigner.RemoveTypeHereNode(_menuItem); 396_menuItem.Text = (_dropDown is not null) ? _dropDown.GetType().Name : _menuItem.Name; 397_designMenu.Items.Add(_menuItem); 403_nestedContainer.Add(_menuItem, "ContextMenuStrip"); 421if (_menuItem is null) 439if (currentItem == _menuItem) 441topmost = _menuItem.DropDown; 463if (ownerItem is not null && ownerItem == _menuItem) 465topmost = _menuItem.DropDown; 481if (topMostItem == _menuItem) 509if (Component is null || _menuItem is null) 516if (selectionService.GetComponentSelected(_menuItem)) 643if (_menuItem is null) 653_menuItem.Visible = true; 656if (_currentParent is not null && _currentParent != _menuItem) 665_menuItem.DropDown = _dropDown; 666_menuItem.DropDown.OwnerItem = _menuItem; 680ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(_menuItem); 699_dummyToolStripGlyph = new ControlBodyGlyph(r, Cursor.Current, _menuItem, new ContextMenuStripBehavior());