Description
Use this property to get the text displayed by the given object.
Declaration
TestObj.Text(Column)
Read-Only Property | String |
TestObj | A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section | |||
Column | [in] | Required | Variant |
Applies To
The property is applied to the following object:
View Mode
This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.
Parameters
The property has the following parameter:
Column
Specifies the index or name of the column that contains the desired element. Column indexes are zero-based.
The index is zero-based and corresponds to the column’s position within the object's internal columns collection rather than the column’s visible position in the object.
The caption can contain asterisk (*) or question mark (?) wildcards or regular expressions. The asterisk corresponds to a string of any length, the question mark corresponds to any single character. To specify more complicated parts of a caption, use regular expressions.
The caption can be case-sensitive or case-insensitive depending on the value of the Use case-sensitive parameters project setting.
Property Value
A string that contains the item text.
Example
To view an example that demonstrates how to use the Text
property, see Getting Selected Tree View Items in Desktop Windows Applications.