2.2.4.5.40 Column::Reverse


Description

This function is use to reverse a range of rows within a column.

Syntax

BOOL Reverse(int nR1 = 0, int nR2 = -1, BOOL bUndo = FALSE)

Parameters

nR1
[input] row index of the first cell in the column.
nR2
[input] row index of the last cell in the column.
bUndo
[input] whether the action should be undoable.

Return

Returns TRUE if successful, or else return FALSE.

Examples

EX1

void	Column_Reverse()
{
	Worksheet wks = Project.ActiveLayer();
	if ( wks && wks.GetNumCols() > 0 )
	{
		Column col(wks, 0);
		//reverse cell(6) to cell(10)
		col.Reverse(5,9);
	}
}

Remark

See Also

Header to Included

origin.h