1 write to _host
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
350_host = (IDesignerHost)GetService(typeof(IDesignerHost));
15 references to _host
System.Windows.Forms.Design (15)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (15)
148ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(_menuItem); 164if (Component is IPersistComponentSettings persistableComponent && _host is not null) 168IComponent rootComponent = _host.RootComponent; 207ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 270if (_host.RootComponent is Control form) 301if (_host.RootComponent is not Control) 336if (_host.GetDesigner(_menuItem) is ToolStripMenuItemDesigner itemDesigner) 370if (_host is not null && !_host.Loading) 372_selectionService.SetSelectedComponents(new IComponent[] { _host.RootComponent }, SelectionTypes.Replace); 389if (_host.RootComponent is Control form) 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);