1 implementation of DestroyComponent
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.cs (1)
997
void IDesignerHost.
DestroyComponent
(IComponent component)
18 references to DestroyComponent
System.Windows.Forms.Design (14)
System\ComponentModel\Design\CollectionEditor.cs (1)
203
host.
DestroyComponent
(component);
System\ComponentModel\Design\UndoEngine.UndoUnit.AddRemoveUndoEvent.cs (1)
92
host.
DestroyComponent
(component);
System\Drawing\Design\ToolboxItem.cs (1)
301
host.
DestroyComponent
(components[index]);
System\Windows\Forms\Design\CommandSet.cs (2)
1544
host.
DestroyComponent
(component);
1755
host.
DestroyComponent
((IComponent)obj);
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
234
host?.
DestroyComponent
(removeComp);
System\Windows\Forms\Design\StyleEditorForm.cs (1)
1074
host.
DestroyComponent
(obj as Component);
System\Windows\Forms\Design\TabControlDesigner.cs (1)
360
host.
DestroyComponent
(tp);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1908
host.
DestroyComponent
(control);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
796
host.
DestroyComponent
(ToolStripItem);
1072
host.
DestroyComponent
(ToolStripItem);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (3)
159
_designerHost.
DestroyComponent
(item);
499
_designerHost.
DestroyComponent
(editedItem);
658
_designerHost.
DestroyComponent
(editedItem);
System.Windows.Forms.Design.Tests (4)
System\ComponentModel\Design\CollectionEditorTests.cs (2)
467
.Setup(h => h.
DestroyComponent
(mockComponent.Object))
488
mockHost.Verify(c => c.
DestroyComponent
(mockComponent.Object), Times.Once());
System\Drawing\Design\ToolboxItemTests.cs (2)
571
.Setup(h => h.
DestroyComponent
(component));
890
.Setup(h => h.
DestroyComponent
(component));