This documentation is archived and is not being maintained.

TextBox Content Model Overview

Visual Studio 2008

This content model overview describes the supported content for a TextBox. A TextBox is a control that can be used to display or edit unformatted text. A TextBox supports unformatted text only. For applications that require support for richer content, see RichTextBox.

The following graphic shows an example of a TextBox.

Example of a TextBox

TextBox screen shot

This topic contains the following sections.

A TextBox has the following content properties.

The Text property specifies the unformatted text contained within the TextBox. The following example shows how to use the Text property to add some unformatted text to a TextBox.

tbSettingText.Text = "Initial text contents of the TextBox.";

Only TextBox uses this content model.

Show: