TabCaption Property (Specific to MSAA TabList Objects)

Applies to TestComplete 15.70, last modified on December 17, 2024

Description

The TabCaption property returns the caption of a tabbed page specified by the Index parameter.

Declaration

TestObj.TabCaption(Index)

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
Index [in]    Required    Integer    

Applies To

The property is applied to the following object:

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Parameters

The property has the following parameter:

Index

The index of the desired tabbed page. Indexes are zero-based, that is, they range from 0 to TabCount-1.

Property Value

A string holding the caption of the specified tabbed page, or an empty string if the specified page is not found.

Remarks

If you use Python or DelphiScript, you should enclose the parameter of the TabCaption property in square brackets: TabCaption[Index].

You can also determine the tab page caption using the Caption property of the corresponding PageTab object.

See Also

FocusedTab Property (Specific to MSAA TabList Objects)
TabCount Property (Specific to MSAA TabList Objects)
Caption Property (MSAA Objects)
DoDefaultAction Method (MSAA Objects)

Highlight search results