System.Windows.Forms.Control.Text Property

Gets or sets the text associated with this control.

Syntax

[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Localizable(true)]
[System.Runtime.InteropServices.DispId(-517)]
public virtual string Text { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Control.Text property of the control is used differently by each derived class. For example the Control.Text property of a System.Windows.Forms.Form is displayed in the title bar at the top of the form, is fairly small in character count, and usually displays the application or document name. However, the Control.Text property of a System.Windows.Forms.RichTextBox can be large and can include numerous nonvisual characters used to format the text. For example, the text displayed in a System.Windows.Forms.RichTextBox can be formatted by adjusting the System.Drawing.Font properties, or by the addition of spaces or tab characters to align the text.

Requirements

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