Text Property

Applies to TestComplete 15.68, last modified on October 03, 2024

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