[]
Removes a component from the designer's site. It is essential to call this method after a Section, Parameter, Control, or Field is removed from its collection to ensure proper removal of its design-time component.
public void DestroyComponent(IComponent component)
Type | Name | Description |
---|---|---|
IComponent | component | The IComponent to remove. |
Type | Condition |
---|---|
InvalidOperationException | Thrown if the user attempts to remove the RootComponent, as it cannot be removed. |