|
<< Click to display table of contents >> TRVTableItemInfo.MoveCols |
Moves AColCount columns, starting from AFromCol column, to the new position (specified in AToCol).
function MoveCols(AFromCol, AColCount, AToCol: Integer): Boolean;
(introduced in version 25)
Parameters:
AFromCol – the first column to move (in range 0 .. ColCount - AColCount)
AColCount specifies how many columns will be moved (a positive value)
AToCol – where to move (in range 0 .. ColCount - 1)
If AToCol < AFromCol, the moved columns are inserted before the current AToCol-th column.
If AToCol > AFromCol, the moved columns are inserted after the current AToCol-th column.
If values of the parameters are not in valid ranges, or if AToCol defines the position inside the moved columns, the method raises an exception.
Cells in the moved columns must not be horizontally merged with left and right columns. Cells must not be merged horizontally across the place of insertion.
If the method cannot move the columns because of cell merging, the function returns False.
See also: