PowerTools ActiveReports for .NET 9.0J
Clear メソッド (RichTextBox)
使用例 

RichTextBoxコントロールの内容をクリアします。
構文
'宣言
 
Public Sub Clear() 
public void Clear()
使用例
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"); 
}
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
参照

関連項目

RichTextBox クラス
RichTextBox メンバ

 

 


©2003-2015 GrapeCity inc. All rights reserved.