1 write to _host
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1424_host = GetRequiredService<IDesignerHost>();
32 references to _host
System.Windows.Forms.Design (32)
System\Windows\Forms\Design\ToolStripDesigner.cs (32)
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; 785ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(ownerItem); 829if (_host.GetDesigner(selectedItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive) 845if (_host.GetDesigner(ownerItem) is ToolStripMenuItemDesigner itemDesigner && itemDesigner.IsEditorActive) 857ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(toolItem); 999Debug.Assert(_host is not null, "Why didn't we get a designer host?"); 1000_insertMenuItemTransaction = _pendingTransaction = _host.CreateTransaction(SR.ToolStripDesignerTransactionAddingItem); 1113Debug.Assert(_host is not null, "Why didn't we get a designer host?"); 1117_pendingTransaction = _host.CreateTransaction(SR.ToolStripDesignerTransactionRemovingItem); 1242if (_host is not null) 1244IDesigner itemDesigner = _host.GetDesigner(selectedItem); 1283ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(toolItem); 1306ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 1360ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 1475Form parentForm = _host.RootComponent as Form; 1479parentFormDesigner = _host.GetDesigner(parentForm) as FormDocumentDesigner; 1854DesignerTransaction changeParent = _host.CreateTransaction(transDesc); 1912if (_host.GetDesigner(primaryDropDownItem) is ToolStripMenuItemDesigner dropDownItemDesigner) 2055&& _host.GetDesigner(item) is ToolStripItemDesigner designer) 2138if (_host.GetDesigner(selectedItem) is ToolStripMenuItemDesigner selectedItemDesigner) 2239ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item); 2338if (_miniToolStrip is not null && _host is not null) 2433if (_host.GetDesigner(newItem) is ToolStripItemDesigner newItemDesigner) 2471ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_host.GetDesigner(item);