2.2.4.22.24 Grid::IsHeadersShown

Description

check column or row is show or hidden.

Syntax

BOOL IsHeadersShown( BOOL bColHeaders )

Parameters

bColHeaders
[input] true for column header or false for row header

Return

TRUE if show else FLASE.

Examples

EX1

//Check if the column header or row header is show.
void Grid_IsHeadersShown_ex1()
{
    Worksheet wks = Project.ActiveLayer();
    if(wks)
    {
        Grid gg;
        gg.Attach(wks, 1);
        if(gg)
        {        
            bool    bColHeaders = true;
            printf("Column header is %s\n", gg.IsHeadersShown(bColHeaders)? "show" : "hidden");
 
            bColHeaders = false; //row header
            printf("Row header is %s\n", gg.IsHeadersShown(bColHeaders)? "show" : "hidden");
        }
    }
}

Remark

See Also

Grid::ShowHeaders

Header to Include

origin.h