This documentation is archived and is not being maintained.

RichTextBox.Rtf Property

Gets or sets the text of the RichTextBox control, including all Rich Text Format (RTF) codes.

[Visual Basic]
Public Property Rtf As String
public string Rtf {get; set;}
public: __property String* get_Rtf();
public: __property void set_Rtf(String*);
public function get Rtf() : String;
public function set Rtf(String);

Property Value

The text of the control in RTF format.


You can use this property to place RTF formatted text into the control for display or to extract the text of the control with the specified RTF formatting defined in the text of the control. This property is typically used when you are assigning RTF text from another RTF source, such as Microsoft Word or Windows WordPad, to the control.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

RichTextBox Class | RichTextBox Members | System.Windows.Forms Namespace | Text