This documentation is archived and is not being maintained.

Text Property (TextControl)

.NET Framework 1.1

Sets or returns the text for the control.

public string Text {
   get,
   set
}

Inheritance

The following is a list of the classes that inherit the Text property from the TextControl base class.

Remarks

For an object that inherits the Text property from the TextControl class, this property renders the text of the control. The default value is an empty string.

The Text property can be specified by using the Text attribute, or as inner text. If the Text property is specified in both ways, the inner text always takes precedence. However, if the Text property is programmatically set, the inner text is automatically removed and the newly set property takes precedence.

See Also

Applies to: TextControl Class

Show: