2.2.4.22.34 Grid::SetTranspose

Description

to transpose table.

Syntax

BOOL SetTranspose( BOOL bSet, BOOL bUndo = FALSE )

Parameters

bSet
[input] to set transpose to true or false
bUndo
[input] true to support undo mechanism

Return

TRUE if success else FALSE.

Examples

EX1

// Before running, highlight XY columns and do Fit Linear, and keep result sheet is active.
void Grid_SetTranspose_ex1()
{
    Worksheet wks = Project.ActiveLayer();
    if(wks)
    {
        Grid gg;
        gg.Attach(wks, 2); //Note table
        
        gg.SetTranspose( !gg.IsTransposed() );
    }    
}

Remark

See Also

Grid::IsTransposed

Header to Include

origin.h