ActiveReports 8
Clear Method
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > RichTextBox Class : Clear Method

Glossary Item Box

Clears the content of the RichTextBox control.

Syntax

Visual Basic (Declaration) 
Public Sub Clear() 
C# 
public void Clear()

Example

C#Copy Code
private void ghCustomerID_Format(object sender, System.EventArgs eArgs)
{
    //Clears the content of the RichTextBox
    this.rtf.Clear(); 
    //Loads the specified file into the RTF control
    this.rtf.LoadFile(System.Windows.Forms.Application.StartupPath + " \\Letter.rtf"); 
}
Visual BasicCopy Code
Private Sub ghCustomerID_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles ghCustomerID.Format
    'Clears the content of the RichTextBox
    Me.rtf.Clear() 
    'Loads the specified file into the RTF control
    Me.rtf.LoadFile(Application.StartupPath + " \Letter.rtf") 
End Sub

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