Redigera

Dela via


RichTextBox.Rtf Property

Definition

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.

Applies to

See also