2 writes to _host
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ControlDesigner.cs (2)
931_host = GetService<IDesignerHost>(); 1673_host ??= GetService<IDesignerHost>();
20 references to _host
System.Windows.Forms.Design (20)
System\Windows\Forms\Design\ControlDesigner.cs (20)
216Debug.Assert(_host is not null); 217if (AutoResizeHandles && Component != _host?.RootComponent) 495if (e.Control is null || _host is null || _host.GetDesigner(e.Control) is ControlDesigner) 688if (parent is not null && _host is not null && _host.RootComponent != Component) 864if (child is null || _host is null || _host.GetDesigner(child) is ControlDesigner) 971if (Inherited && _host is not null 972&& _host.RootComponent != component 981if ((_host is null || _host.RootComponent != component) && ForceVisible) 1427if (_host?.GetDesigner(comp) is ControlDesigner des && (des.SelectionRules & SelectionRules.Moveable) != 0) 1462object? designer = _host?.GetDesigner(parent); 1491object? designer = _host?.GetDesigner(parent); 1520object? designer = _host?.GetDesigner(parent); 2174if (_host is not null && _host.RootComponent is not null && _host.GetDesigner(_host.RootComponent) is IRootDesigner rd)