Text Property

Applies to TestComplete 14.92, last modified on September 16, 2021

Specifies the text displayed by the component.

Declaration

componentObj.Text
Read-Write Property String
componentObj     One of the components listed in the Applies To section  

Applies To

The property applies to the following components:

TcxButtonEdit, TcxComboBox, TcxMRUEdit, TcxTextEdit, TcxProgressBarProperties

Description

The Text property lets you get or set the text displayed by the component.

Property Value

A string containing the component’s text. By default, Text holds the same value as the component’s name (the Name property).

Remarks

The text displayed by the component is usually specified by the Caption or Text property. The difference between these properties is that Text is applied to components that allow editing its contents (for example, TcxTextEdit) and specifies the component contents, whereas Caption specifies the text used to label the component on the form (for example, caption of a button or a panel).

See Also

Caption Property

Highlight search results