ValueTreeColumnCollection.Move

Syntax:

Move(<Column>, <Offset>)

Parameters:

<Column> (required)

Type: Number; ValueTreeColumn.
Index of the column being moved or the column itself.

<Offset> (required)

Type: Number.
Number of positions the column must be moved by. A positive value means it will be shifted to the end, and a negative value shifts to the beginning of the collection.

Description:

Moves the column with a given index by specified offset.

Availability:

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

Example:

// move a column to the next position
ContentColumns.Move(CurColumnIndex, 1);
// move a column to the previous position
ContentColumns.Move(CurColumnIndex, -1);


    

1C:Enterprise Developer's Community