ValueTreeColumnCollection.IndexOf

Syntax:

IndexOf(<Column>)

Parameters:

<Column> (required)

Type: ValueTreeColumn.
The column for which an index is needed.

Returned value:

Type: Number.
Index of a specified column in the collection. If none is found, returns -1.

Description:

Receives the index of specified column in the column collection.

Availability:

Server, thick client, external connection, Mobile application (server).

Example:

CurColumnIndex = ContentColumns.IndexOf(CurrentColumn);

    

1C:Enterprise Developer's Community