RichTextBox.Rtf Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the text of the RichTextBox control, including all rich text format (RTF) codes.
public:
property System::String ^ Rtf { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
public string Rtf { get; set; }
[System.ComponentModel.Browsable(false)]
public string? Rtf { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Rtf : string with get, set
Public Property Rtf As String
Property Value
The text of the control in RTF format.
- Attributes
Remarks
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 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.