System.Windows.Forms.RichTextBox.Rtf Property

Gets or sets the text of the System.Windows.Forms.RichTextBox control, including all rich text format (RTF) codes.


public string Rtf { set; get; }


Documentation for this section has not yet been entered.


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.

If you change the Control.RightToLeft property at run time, only raw text without formatting is preserved.

For the RTF codes, see "rich text format (RTF) Specification, version 1.6" in the MSDN library at


Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0,