Worksheet::ShowHeaders

Description

Show or hide the Row or Column headers.

Syntax

BOOL ShowHeaders( BOOL bShow = TRUE, BOOL bCol = TRUE )

Parameters

bShow
[input] Flag to show (TRUE) or hide (FALSE) selected header. default is show (TRUE).
bCol
[input] Select Row (FALSE) or Column (TRUE), default is Column (TRUE).

Return

TRUE on success, otherwise FALSE

Examples

EX1

// Toggle the visibility of both Row and Column headers
// Assume a worksheet is active
void Worksheet_ShowHeaders_Ex1()
{
    Worksheet wks;
    wks = Project.ActiveLayer();
    if ( wks )
    {
        wks.ShowHeaders(!wks.IsHeaderShown(false), false);
        wks.ShowHeaders(!wks.IsHeaderShown(true), true);
    }
}

Remark

Show or hide the Row or Column headers.Row headers include Long Name, Units, Comments and Parameters.Column headers are the column Short Name (default A, B, C, etc.)

See Also

Worksheet::IsheaderShown

header to Include

origin.h