RichTextBox.Rtf Property
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
The text of the control in RTF format.
- Attributes
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.
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: