1 write to _host
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1421_host = GetRequiredService<IDesignerHost>();
32 references to _host
System.Windows.Forms.Design (32)
System\Windows\Forms\Design\ToolStripDesigner.cs (32)
456ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 476Debug.Assert(_host is not null, "Why didn't we get a designer host?"); 477NewItemTransaction = _host.CreateTransaction(SR.ToolStripCreatingNewItemTransaction); 490component = _host.CreateComponent(t); 491designer = _host.GetDesigner(component) as ToolStripItemDesigner; 528Debug.Assert(_host is not null, "Why didn't we get a designer host?"); 530DesignerTransaction outerTransaction = _host.CreateTransaction(string.Format(SR.ToolStripAddingItem, t.Name)); 538IComponent component = _host.CreateComponent(t, NameFromText(text, t, Component.Site)); 539ToolStripItemDesigner designer = _host.GetDesigner(component) as ToolStripItemDesigner; 792if (_host.GetDesigner(selectedItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive) 808if (_host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive) 820ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(toolItem); 978Debug.Assert(_host is not null, "Why didn't we get a designer host?"); 979_insertMenuItemTransaction = _pendingTransaction = _host.CreateTransaction(SR.ToolStripDesignerTransactionAddingItem); 1089Debug.Assert(_host is not null, "Why didn't we get a designer host?"); 1093_pendingTransaction = _host.CreateTransaction(SR.ToolStripDesignerTransactionRemovingItem); 1248if (_host is not null) 1250IDesigner itemDesigner = _host.GetDesigner(selectedItem); 1289ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(toolItem); 1312ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 1366ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 1422_componentChangeService = _host.GetService<IComponentChangeService>(); 1505Form parentForm = _host.RootComponent as Form; 1510parentFormDesigner = _host.GetDesigner(parentForm) as FormDocumentDesigner; 1899DesignerTransaction changeParent = _host.CreateTransaction(transDesc); 1951if (_host.GetDesigner(primaryDropDownItem) is ToolStripMenuItemDesigner dropDownItemDesigner) 2097&& _host.GetDesigner(item) is ToolStripItemDesigner designer) 2180if (_host.GetDesigner(selectedItem) is ToolStripMenuItemDesigner selectedItemDesigner) 2281ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 2372if (_miniToolStrip is not null && _host is not null) 2458if (_host.GetDesigner(newItem) is ToolStripItemDesigner newItemDesigner) 2496ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item);