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