Column::GetNumRows

Description

Get the internal size in a Column. This number is always larger then GetUpperIndex.

Syntax

int GetNumRows( )

Parameters

Return

Returns the number of rows in a Column.

Examples

EX1

// Read number of rows in first worksheet in project
void    Column_GetNumRows_Ex1()
{
    WorksheetPage wp = Project.WorksheetPages(0);
    if(!wp)
        return;
    
    Worksheet wks(wp.GetName());
    Column col(wks,0);
    int nRows = col.GetNumRows();
    printf("Number of rows is %u\n", nRows);
}

Remark

Get the number of rows in a Column.

See Also

Column::SetNumRows|Column::SetUpperBound|Column::GetUpperBound

header to Include

origin.h