Documentation Center

Text Property

Gets or sets the text associated with Form

Syntax

LanguageSyntax
C#string Text { get; }
Visual Basic (Declaration)ReadOnly Property Text As String
Visual C++property String^ Text { String^ get ();}

Field Value

The text associated with this Form object.

Remarks

  • The Text property of a Form is displayed in the title bar at the top of the form, is fairly small in character count, and usually displays the properties dialog name.
  • The value of the Text property can also be set using the metadata configuration file. For more information, see label element (Metadata configuration).
  • If information is specified using this property, this information overrides the value of the metadata configuration label element.