Grid::GetNumChildGrids

Description

Get the number of child grids.

Syntax

int GetNumChildGrids( )

Parameters

Return

returns the number of child grids.

Examples

EX1

void Grid_GetNumChildGrids_ex1()
{
    Worksheet wks = Project.ActiveLayer();
    if(wks && wks.GetSystemParam(0) & WP_SHEET_HIERARCHY)
    {
        Grid     gg;
        gg.Attach(wks);            
        int nChild = gg.GetNumChildGrids(); 
        out_int("", nChild);
    }
}

Remark

See Also

header to Include

origin.h