Export (0) Print
Expand All

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
[C#]
public string Rtf {get; set;}
[C++]
public: __property String* get_Rtf();
public: __property void set_Rtf(String*);
[JScript]
public function get Rtf() : String;
public function set Rtf(String);

Property Value

The text of the control in RTF format.

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.

Requirements

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

Show:
© 2014 Microsoft