ActiveReports 6 Online Help
RemoveComponent(Section) Method
Example 

The section to remove.
Removes a section from the current report.
Syntax
'Declaration
 
Public Overloads Function RemoveComponent( _
   ByVal section As Section _
) As Boolean
public bool RemoveComponent( 
   Section section
)

Parameters

section
The section to remove.

Return Value

True if a section is removed successfully; otherwise, false.
Remarks

A section is removed in pairs (e.g., the page footer is removed together with the page header).

This method returns false if:

Example
Me.arDesigner.RemoveComponent(Me.arDesigner.Report.Sections(0))
this.arDesigner.RemoveComponent(this.arDesigner.Report.Sections[0]);
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Designer Class
Designer Members
Overload List

Send Feedback