1 write to _host
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1423_host = GetRequiredService<IDesignerHost>();
31 references to _host
System.Windows.Forms.Design (31)
System\Windows\Forms\Design\ToolStripDesigner.cs (31)
489ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 509Debug.Assert(_host is not null, "Why didn't we get a designer host?"); 510NewItemTransaction = _host.CreateTransaction(SR.ToolStripCreatingNewItemTransaction); 523component = _host.CreateComponent(t); 524designer = _host.GetDesigner(component) as ToolStripItemDesigner; 564Debug.Assert(_host is not null, "Why didn't we get a designer host?"); 566DesignerTransaction outerTransaction = _host.CreateTransaction(string.Format(SR.ToolStripAddingItem, t.Name)); 574IComponent component = _host.CreateComponent(t, NameFromText(text, t, Component.Site)); 575ToolStripItemDesigner designer = _host.GetDesigner(component) as ToolStripItemDesigner; 828if (_host.GetDesigner(selectedItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive) 844if (_host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive) 856ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(toolItem); 998Debug.Assert(_host is not null, "Why didn't we get a designer host?"); 999_insertMenuItemTransaction = _pendingTransaction = _host.CreateTransaction(SR.ToolStripDesignerTransactionAddingItem); 1112Debug.Assert(_host is not null, "Why didn't we get a designer host?"); 1116_pendingTransaction = _host.CreateTransaction(SR.ToolStripDesignerTransactionRemovingItem); 1241if (_host is not null) 1243IDesigner itemDesigner = _host.GetDesigner(selectedItem); 1282ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(toolItem); 1305ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 1359ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 1474Form parentForm = _host.RootComponent as Form; 1478parentFormDesigner = _host.GetDesigner(parentForm) as FormDocumentDesigner; 1853DesignerTransaction changeParent = _host.CreateTransaction(transDesc); 1911if (_host.GetDesigner(primaryDropDownItem) is ToolStripMenuItemDesigner dropDownItemDesigner) 2054&& _host.GetDesigner(item) is ToolStripItemDesigner designer) 2137if (_host.GetDesigner(selectedItem) is ToolStripMenuItemDesigner selectedItemDesigner) 2238ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 2337if (_miniToolStrip is not null && _host is not null) 2432if (_host.GetDesigner(newItem) is ToolStripItemDesigner newItemDesigner) 2470ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item);