ColumnIndex Property (Cell Objects)

Applies to TestComplete 15.69, last modified on November 13, 2024
This property is not supported in web tests (including cross-platform web tests) that use XPath expressions and CSS selectors to locate web elements. This property can be only used in tests that locate web objects by using internal identification properties provided by TestComplete.

Description

Specifies the column index of the table cell to which TestObj corresponds.

Declaration

TestObj.ColumnIndex

Read-Only Property Integer
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

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.

Property Value

An integer value that specifies the column index. The index is zero-based. The first column has index 0, the second column has index 1 and so on. To get the total number of columns in a row, use the ColumnCount property of a web table element.

Remarks

This property is available only if the Tree model of web objects is active.

The ColumnIndex and RowIndex properties specify a cell's position within a web table. You can use these properties to assign a custom name for a cell.

Example

To view an example that demonstrates how to use the ColumnIndex property, see Accessing Rows, Columns and Cells in Syncfusion GridControl.

See Also

Web Table Cell Properties
ColumnCount Property (WebTable Objects)
Properties Added to Web Test Objects
Tree Model
Web Object Types Used by Web and Hybrid Mobile Applications

Highlight search results