2.2.4.22.6 Grid::Cols

ClassName

Grid

AccessType

public

Name

Cols

Declaration

int Cols

Remark

Examples

EX1

//Output the Grid's Cols and Rows, including label rows.
void Grid_Cols_ex1()
{
    Worksheet wks = Project.ActiveLayer();
    if(wks)
    {
        Grid gg;
        gg.Attach(wks);
        if(gg)
        {
            printf("Rows:%d, Cols:%d\n", gg.Rows, gg.Cols);
        }
    }
}

Description

The total number of columns.

Header to Include

origin.h

See Also

Grid::Rows

Reference