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