1 write to _host
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
350
_host
= (IDesignerHost)GetService(typeof(IDesignerHost));
15 references to _host
System.Windows.Forms.Design (15)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (15)
148
ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)
_host
.GetDesigner(_menuItem);
164
if (Component is IPersistComponentSettings persistableComponent &&
_host
is not null)
168
IComponent rootComponent =
_host
.RootComponent;
207
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_host
.GetDesigner(item);
270
if (
_host
.RootComponent is Control form)
301
if (
_host
.RootComponent is not Control)
336
if (
_host
.GetDesigner(_menuItem) is ToolStripMenuItemDesigner itemDesigner)
370
if (
_host
is not null && !
_host
.Loading)
372
_selectionService.SetSelectedComponents(new IComponent[] {
_host
.RootComponent }, SelectionTypes.Replace);
389
if (
_host
.RootComponent is Control form)
445
ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)
_host
.GetDesigner(comp);
469
ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)
_host
.GetDesigner(ownerItem);
658
if (
_host
.GetDesigner(_currentParent) is ToolStripMenuItemDesigner ownerItemDesigner)
680
ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)
_host
.GetDesigner(_menuItem);