ActiveReports 6 Online Help
RTF Property
Example 

Gets or sets the rich text content of the control.
Syntax
'Declaration
 
Public Property RTF As String
public string RTF {get; set;}

Property Value

A string value.  Contents of the RichTextBox control.
Remarks
The RichTextBox control is limited in its support for advanced RTF features such as the ones supported by Microsoft Word.  In general, the features supported by WordPad are supported in this control.  Tables are now supported as well.
Example
The following example sets the contents of the RichTextBox to a formatted Rich Text string.
this.RichTextBox1.RTF = @"{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}}\viewkind4\uc1\pard\lang1033\f0\fs17 Rich Text\par }";
Me.RichTextBox1.RTF = "{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}}\viewkind4\uc1\pard\lang1033\f0\fs17 Rich Text\par }"
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

RichTextBox Class
RichTextBox Members
Text Property

Send Feedback