System.Windows.Forms.TextBoxBase.Text Property

Gets or sets the current text in the text box.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.Editor("System.ComponentModel.Design.MultilineStringEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
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 text box, set the TextBoxBase.Multiline property to true. To read or set the text of a multiline text box, use the TextBoxBase.Lines 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