ActiveReports Developer 7
RTF Property
See Also  Example
GrapeCity.ActiveReports.v7 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > RichTextBox Class : RTF Property

Glossary Item Box

Gets or sets the rich text content of the control.

Syntax

Visual Basic (Declaration) 
Public Property RTF As System.String
C# 
public System.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.
C#Copy Code
this.RichTextBox1.RTF = @"{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}}\viewkind4\uc1\pard\lang1033\f0\fs17 Rich Text\par }";
Visual BasicCopy Code
Me.RichTextBox1.RTF = "{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}}\viewkind4\uc1\pard\lang1033\f0\fs17 Rich Text\par }"

See Also

Reference

RichTextBox Class
RichTextBox Members
ActiveReports6~GrapeCity.ActiveReports.RichTextBox~Text