System.Windows.Forms.Control.Text Property

Gets or sets the text associated with this control.


public virtual string Text { set; get; }


Documentation for this section has not yet been entered.


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.


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