2.2.4.46.89 Worksheet::ShowLabels

Remark

Show [Hide] column labels in Origin c. This is a very old function, the recommended function is Grid::SetShowLabels.

Description

Show [Hide] column labels

Syntax

void ShowLabels( BOOL bShow = TRUE )

Parameters

bShow
[input] TRUE shows Column Labels while FALSE will hide Column Labels.default is TRUE.

Return

void

Examples

EX1

//Set and Show column labels. 
void Worksheet_ShowLabels_Ex1()
{
    WorksheetPage wp = Project.WorksheetPages(0);
    if(!wp)
        return;
    
    Worksheet wks(wp.GetName());
    string strLabel = "Elapsed\n(in sec.)";
    BOOL b = wks.Columns(0).SetLabel(strLabel);
    wks.ShowLabels();
}

See Also

Grid::SetShowLabels, Column::SetLabel, Column::GetLabel

Header to Include

origin.h