System.Windows.Forms.RichTextBox.Text Property

Gets or sets the current text in the rich text box.

Syntax

[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.All)]
[System.ComponentModel.Localizable(true)]
public override string Text { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

To display multiple lines of text in a System.Windows.Forms.RichTextBox, set the TextBoxBase.Multiline property to true. To read or set the text of a multiline text box, use the TextBoxBase.Lines property. The RichTextBox.Text property does not return any information about the formatting applied to the contents of the System.Windows.Forms.RichTextBox. To get the rich text formatting (RTF) codes, use the RichTextBox.Rtf property. The amount of text that can be entered in the System.Windows.Forms.RichTextBox control is limited only by available system memory.

Requirements

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