Description
The ColumnCount
property returns the number of columns in a row of the web table to which TestObj corresponds.
Declaration
TestObj.ColumnCount(RowIndex)
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 | |||
RowIndex | [in] | Required | Integer |
Applies To
The property is applied to the following objects:
Ext JS Combo Box, Ext JS Date Field, Ext JS Number Field and 2 more objects, Ext JS Time Field, Web Table « Collapse the list
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:
RowIndex
Specifies the index of the desired row in the web table. The index is zero-based. The collection of rows includes all the rows of the table (the ones that are in the header, body and footer). So, if the table has a header, then a row with index 0 belongs to the header.
Property Value
An integer value that specifies the number of columns in the row.
Remarks
The RowIndex parameter is used because cells in a table can occupy several columns of a row. If all the rows of the table have the same number of columns, then to obtain the number of columns in that table, you can use ColumnCount(0)
.
This property is available only if the Tree model of web objects is active.
Example
To view an example that demonstrates how to use the ColumnCount
property, see Parsing HTML Tables.
See Also
Tree Model
Web Table Properties
RowCount Property (WebTable Objects)