1 write to _designerHost
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1489
_designerHost
= GetService<IDesignerHost>();
45 references to _designerHost
System.Windows.Forms.Design (45)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (45)
159
_designerHost
.DestroyComponent(item);
280
if (
_designerHost
is not null)
282
if (
_designerHost
.GetDesigner(toolItem) is ToolStripItemDesigner designer)
389
ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)
_designerHost
.GetDesigner(item);
409
ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)
_designerHost
.GetDesigner(item);
457
if (
_designerHost
.GetDesigner(editedItem) is ToolStripItemDesigner itemDesigner)
496
_designerHost
.DestroyComponent(editedItem);
532
DesignerTransaction designerTransaction =
_designerHost
.CreateTransaction(SR.ToolStripItemPropertyChangeTransaction);
643
_designerHost
.DestroyComponent(editedItem);
752
if (
_designerHost
is null)
776
_newMenuItemTransaction ??=
_designerHost
.CreateTransaction(SR.ToolStripCreatingNewItemTransaction);
779
newItem = (ToolStripItem)
_designerHost
.CreateComponent(t);
786
ToolStripItemDesigner designer =
_designerHost
.GetDesigner(newItem) as ToolStripItemDesigner;
824
if (
_designerHost
is null)
838
DesignerTransaction outerTransaction =
_designerHost
.CreateTransaction(SR.ToolStripCreatingNewItemTransaction);
848
newItem = (ToolStripItem)
_designerHost
.CreateComponent(t, ToolStripDesigner.NameFromText(newText, t, MenuItem.Site));
855
ToolStripItemDesigner designer =
_designerHost
.GetDesigner(newItem) as ToolStripItemDesigner;
950
ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)
_designerHost
.GetDesigner(currentItem);
1045
if (
_designerHost
.GetDesigner(item) is ToolStripItemDesigner designer)
1104
if (
_designerHost
.GetDesigner(
_designerHost
.RootComponent) is ControlDesigner designer)
1172
if (
_designerHost
.GetDesigner(
_designerHost
.RootComponent) is ControlDesigner designer)
1277
if (
_designerHost
.GetDesigner(newDummyItem) is ToolStripMenuItemDesigner newItemDesigner)
1295
if (
_designerHost
is not null)
1297
IDesigner designer =
_designerHost
.GetDesigner(ownerItem);
1548
if (
_designerHost
.GetDesigner(currentOwner) is ToolStripMenuItemDesigner ownerdesigner)
1559
if (
_designerHost
.GetDesigner(MenuItem.DropDown) is ToolStripDropDownDesigner designer)
1775
if (
_designerHost
.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner && mainStripDesigner.InsertTransaction is not null)
1823
if (
_designerHost
.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner && !mainStripDesigner.EditingCollection && mainStripDesigner.InsertTransaction is null)
1826
Debug.Assert(
_designerHost
is not null, "Why didn't we get a designer host?");
1827
mainStripDesigner.InsertTransaction =
_designerHost
.CreateTransaction(SR.ToolStripInsertingIntoDropDownTransaction);
1835
Debug.Assert(
_designerHost
is not null, "Why didn't we get a designer host?");
1836
_insertMenuItemTransaction =
_designerHost
.CreateTransaction(SR.ToolStripInsertingIntoDropDownTransaction);
1944
Debug.Assert(
_designerHost
is not null, "Why didn't we get a designer host?");
1948
_pendingTransaction =
_designerHost
.CreateTransaction(SR.ToolStripDesignerTransactionRemovingItem);
2027
if (
_designerHost
.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner && mainStripDesigner.CacheItems)
2076
if (
_designerHost
.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner)
2127
if (
_designerHost
.GetDesigner(firstDropDown) is ToolStripDropDownDesigner firstDropDownDesigner)
2333
ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)
_designerHost
.GetDesigner(ddItem);
2354
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_designerHost
.GetDesigner(item);
2456
if (
_designerHost
is not null)
2458
IDesigner designer =
_designerHost
.GetDesigner(_parentItem);
2519
if (
_designerHost
.GetDesigner(currentSelection) is ToolStripMenuItemDesigner currentSelectionDesigner)
2527
ToolStripDropDownDesigner dropDownDesigner = (ToolStripDropDownDesigner)
_designerHost
.GetDesigner(currentDropDown);