1 write to _designerHost
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1519_designerHost = GetService<IDesignerHost>();
45 references to _designerHost
System.Windows.Forms.Design (45)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (45)
159_designerHost.DestroyComponent(item); 280if (_designerHost is not null) 282if (_designerHost.GetDesigner(toolItem) is ToolStripItemDesigner designer) 389ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)_designerHost.GetDesigner(item); 409ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_designerHost.GetDesigner(item); 457if (_designerHost.GetDesigner(editedItem) is ToolStripItemDesigner itemDesigner) 499_designerHost.DestroyComponent(editedItem); 538DesignerTransaction designerTransaction = _designerHost.CreateTransaction(SR.ToolStripItemPropertyChangeTransaction); 658_designerHost.DestroyComponent(editedItem); 767if (_designerHost is null) 791_newMenuItemTransaction ??= _designerHost.CreateTransaction(SR.ToolStripCreatingNewItemTransaction); 794newItem = (ToolStripItem)_designerHost.CreateComponent(t); 801ToolStripItemDesigner designer = _designerHost.GetDesigner(newItem) as ToolStripItemDesigner; 842if (_designerHost is null) 856DesignerTransaction outerTransaction = _designerHost.CreateTransaction(SR.ToolStripCreatingNewItemTransaction); 866newItem = (ToolStripItem)_designerHost.CreateComponent(t, ToolStripDesigner.NameFromText(newText, t, MenuItem.Site)); 873ToolStripItemDesigner designer = _designerHost.GetDesigner(newItem) as ToolStripItemDesigner; 971ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_designerHost.GetDesigner(currentItem); 1072if (_designerHost.GetDesigner(item) is ToolStripItemDesigner designer) 1131if (_designerHost.GetDesigner(_designerHost.RootComponent) is ControlDesigner designer) 1199if (_designerHost.GetDesigner(_designerHost.RootComponent) is ControlDesigner designer) 1307if (_designerHost.GetDesigner(newDummyItem) is ToolStripMenuItemDesigner newItemDesigner) 1325if (_designerHost is not null) 1327IDesigner designer = _designerHost.GetDesigner(ownerItem); 1578if (_designerHost.GetDesigner(currentOwner) is ToolStripMenuItemDesigner ownerdesigner) 1589if (_designerHost.GetDesigner(MenuItem.DropDown) is ToolStripDropDownDesigner designer) 1805if (_designerHost.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner && mainStripDesigner.InsertTransaction is not null) 1853if (_designerHost.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner && !mainStripDesigner.EditingCollection && mainStripDesigner.InsertTransaction is null) 1856Debug.Assert(_designerHost is not null, "Why didn't we get a designer host?"); 1857mainStripDesigner.InsertTransaction = _designerHost.CreateTransaction(SR.ToolStripInsertingIntoDropDownTransaction); 1865Debug.Assert(_designerHost is not null, "Why didn't we get a designer host?"); 1866_insertMenuItemTransaction = _designerHost.CreateTransaction(SR.ToolStripInsertingIntoDropDownTransaction); 1977Debug.Assert(_designerHost is not null, "Why didn't we get a designer host?"); 1981_pendingTransaction = _designerHost.CreateTransaction(SR.ToolStripDesignerTransactionRemovingItem); 2063if (_designerHost.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner && mainStripDesigner.CacheItems) 2112if (_designerHost.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner) 2163if (_designerHost.GetDesigner(firstDropDown) is ToolStripDropDownDesigner firstDropDownDesigner) 2378ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)_designerHost.GetDesigner(ddItem); 2399ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)_designerHost.GetDesigner(item); 2501if (_designerHost is not null) 2503IDesigner designer = _designerHost.GetDesigner(_parentItem); 2564if (_designerHost.GetDesigner(currentSelection) is ToolStripMenuItemDesigner currentSelectionDesigner) 2572ToolStripDropDownDesigner dropDownDesigner = (ToolStripDropDownDesigner)_designerHost.GetDesigner(currentDropDown);