2.2.4.22.8 Grid::Expand

Description

Expand or collapse tables

Syntax

BOOL Expand( BOOL bExpand, BOOL bIsAll = true )

Parameters

bExpand
[input] true to expand table, else collapse.
bIsAll
[input] default:true, mean to expand/collapse its nodes and every sub-nodes recursively, else only the sub nodes under the root node

Return

TRUE if success else FALSE.

Examples

EX1

//To see the result, please import Gaussian.dat and do nonlinear fit, then active the result table.
void Grid_Expand_ex1(bool bExpand = true, bool bIsAll = true)
{
    Worksheet wks = Project.ActiveLayer();
    if(wks && wks.GetSystemParam(0) & WP_SHEET_HIERARCHY)
    {
        //expand tables
        Grid     gg;
        gg.Attach(wks);            
        gg.Expand(bExpand, bIsAll); 
    }
}

Remark

See Also

Header to Include

origin.h