Controls.TControl.Text

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Controls.pas

	property Text: TCaption read GetText write SetText;


Unit: Controls

Type: property

Visibility: protected

Member Of: TControl

C++ Information

From Controls.hpp

	__property System::UnicodeString Text = {read=GetText,write=SetText};


Unit: Controls

Type: property

Visibility: protected

Member Of: TControl

Description

Contains a text string associated with the control.


Use the Text property to read the Text of the control or specify a new string for the Text value. By default, Text is the control name. For edit controls and memos, the Text appears within the control. For combo boxes, the Text is the content of the edit control portion of the combo box.

Note:  Controls that display text use either the Caption property or the Text property to specify the text value. Which property is used depends on the type of control. In general, Caption is used for text that appears as a window title or label, while Text is used for text that appears as the content of a control.

See Also

Code Samples


Personal tools
Translations
Newest Version