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