1 write to _designerHost
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1486
_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);
1042
if (
_designerHost
.GetDesigner(item) is ToolStripItemDesigner designer)
1101
if (
_designerHost
.GetDesigner(
_designerHost
.RootComponent) is ControlDesigner designer)
1169
if (
_designerHost
.GetDesigner(
_designerHost
.RootComponent) is ControlDesigner designer)
1274
if (
_designerHost
.GetDesigner(newDummyItem) is ToolStripMenuItemDesigner newItemDesigner)
1292
if (
_designerHost
is not null)
1294
IDesigner designer =
_designerHost
.GetDesigner(ownerItem);
1545
if (
_designerHost
.GetDesigner(currentOwner) is ToolStripMenuItemDesigner ownerdesigner)
1556
if (
_designerHost
.GetDesigner(MenuItem.DropDown) is ToolStripDropDownDesigner designer)
1772
if (
_designerHost
.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner && mainStripDesigner.InsertTransaction is not null)
1820
if (
_designerHost
.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner && !mainStripDesigner.EditingCollection && mainStripDesigner.InsertTransaction is null)
1823
Debug.Assert(
_designerHost
is not null, "Why didn't we get a designer host?");
1824
mainStripDesigner.InsertTransaction =
_designerHost
.CreateTransaction(SR.ToolStripInsertingIntoDropDownTransaction);
1832
Debug.Assert(
_designerHost
is not null, "Why didn't we get a designer host?");
1833
_insertMenuItemTransaction =
_designerHost
.CreateTransaction(SR.ToolStripInsertingIntoDropDownTransaction);
1941
Debug.Assert(
_designerHost
is not null, "Why didn't we get a designer host?");
1945
_pendingTransaction =
_designerHost
.CreateTransaction(SR.ToolStripDesignerTransactionRemovingItem);
2021
if (
_designerHost
.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner && mainStripDesigner.CacheItems)
2070
if (
_designerHost
.GetDesigner(mainStrip) is ToolStripDesigner mainStripDesigner)
2121
if (
_designerHost
.GetDesigner(firstDropDown) is ToolStripDropDownDesigner firstDropDownDesigner)
2327
ToolStripItemDesigner dropDownItemDesigner = (ToolStripItemDesigner)
_designerHost
.GetDesigner(ddItem);
2348
ToolStripItemDesigner itemDesigner = (ToolStripItemDesigner)
_designerHost
.GetDesigner(item);
2450
if (
_designerHost
is not null)
2452
IDesigner designer =
_designerHost
.GetDesigner(_parentItem);
2513
if (
_designerHost
.GetDesigner(currentSelection) is ToolStripMenuItemDesigner currentSelectionDesigner)
2521
ToolStripDropDownDesigner dropDownDesigner = (ToolStripDropDownDesigner)
_designerHost
.GetDesigner(currentDropDown);