[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Design.Designer.DestroyComponent

DestroyComponent Method

DestroyComponent(IComponent)

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.

Declaration
public void DestroyComponent(IComponent component)
Parameters
Type Name Description
IComponent component

The IComponent to remove.

Exceptions
Type Condition
InvalidOperationException

Thrown if the user attempts to remove the RootComponent, as it cannot be removed.