51 references to ToolStripMenuItemDesigner
System.Windows.Forms.Design (51)
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
140if (designerHost.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner)
System\Windows\Forms\Design\ToolStripDesigner.cs (5)
828if (_host.GetDesigner(selectedItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive) 844if (_host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive) 1911if (_host.GetDesigner(primaryDropDownItem) is ToolStripMenuItemDesigner dropDownItemDesigner) 2137if (_host.GetDesigner(selectedItem) is ToolStripMenuItemDesigner selectedItemDesigner) 2435((ToolStripMenuItemDesigner)newItemDesigner).InitializeDropDown();
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (10)
148ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(_menuItem); 336if (_host.GetDesigner(_menuItem) is ToolStripMenuItemDesigner itemDesigner) 445ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(comp); 469ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(ownerItem); 658if (_host.GetDesigner(_currentParent) is ToolStripMenuItemDesigner ownerItemDesigner) 680ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(_menuItem);
System\Windows\Forms\Design\ToolStripInSituService.cs (2)
107_toolItemDesigner = host.GetDesigner(parentItem) as ToolStripMenuItemDesigner; 183if (_toolItemDesigner is ToolStripMenuItemDesigner menuDesigner)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (3)
606if (designerHost.GetDesigner(ddItem) is ToolStripMenuItemDesigner itemDesigner) 795if (designerHost.GetDesigner(item) is ToolStripMenuItemDesigner itemDesigner) 805if (designerHost.GetDesigner(ownerItem) is ToolStripMenuItemDesigner ownerDesigner)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (4)
731ToolStripMenuItemDesigner ownerItemDesigner = null; 745ownerItemDesigner = (ToolStripMenuItemDesigner)host.GetDesigner(ownerItem); 993ToolStripMenuItemDesigner parentItemDesigner = (ToolStripMenuItemDesigner)designerHost.GetDesigner(parentItem);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (8)
536else if (!parentItem.DropDown.Visible && Host.GetDesigner(parentItem) is ToolStripMenuItemDesigner designer) 644if (host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner) 656if (host.GetDesigner(dropDownItem) is ToolStripMenuItemDesigner selectedItemDesigner) 851if (host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner) 882if (designer is ToolStripMenuItemDesigner tooldesigner) 931if (host.GetDesigner(comp) is ToolStripMenuItemDesigner designer) 946if (host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner) 1261&& host.GetDesigner(dropDownItem) is ToolStripMenuItemDesigner designer)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (14)
409ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_designerHost.GetDesigner(item); 971ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_designerHost.GetDesigner(currentItem); 1307if (_designerHost.GetDesigner(newDummyItem) is ToolStripMenuItemDesigner newItemDesigner) 1328if (designer is ToolStripMenuItemDesigner menuItemDesigner) 1578if (_designerHost.GetDesigner(currentOwner) is ToolStripMenuItemDesigner ownerdesigner) 2279properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ToolStripMenuItemDesigner), prop, empty); 2504if (designer is ToolStripMenuItemDesigner menuItemDesigner) 2564if (_designerHost.GetDesigner(currentSelection) is ToolStripMenuItemDesigner currentSelectionDesigner) 2637private readonly ToolStripMenuItemDesigner _menuItemDesigner; 2639internal DropDownBehavior(ControlDesigner designer, ToolStripMenuItemDesigner menuItemDesigner) : base(designer) 2764if (host.GetDesigner(dropDownItem) is ToolStripMenuItemDesigner dropDownItemDesigner) 2789if (host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner ownerDesigner)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
530if (_designer is ToolStripMenuItemDesigner itemDesigner) 567if (_designerHost.GetDesigner(selectedItem) is ToolStripMenuItemDesigner menuItemDesigner) 775if (commit && (_designer is ToolStripDesigner || _designer is ToolStripMenuItemDesigner)) 779if (text == "-" && _designer is ToolStripMenuItemDesigner)