Gets or sets the rich text content of the control.
[Visual Basic]
Public Property RTF As String
[C#]
public string RTF {get; set;}
A string value. Contents of the RichTextBox control.
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.
[C#] 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 }"; |
[Visual Basic]
Me.RichTextBox1.RTF = "{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}}\viewkind4\uc1\pard\lang1033\f0\fs17 Rich Text\par }" |
RichTextBox Class | RichTextBox Members | Text
Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.