1 write to _host
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
341_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); 264if (_host.RootComponent is Control form) 292if (_host.RootComponent is not Control) 327if (_host.GetDesigner(_menuItem) is ToolStripMenuItemDesigner itemDesigner) 361if (_host is not null && !_host.Loading) 363_selectionService.SetSelectedComponents(new IComponent[] { _host.RootComponent }, SelectionTypes.Replace); 380if (_host.RootComponent is Control form) 436ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(comp); 460ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(ownerItem); 649if (_host.GetDesigner(_currentParent) is ToolStripMenuItemDesigner ownerItemDesigner) 671ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(_menuItem);