Worksheet::SetCellComment

Description

Set cell comment

Syntax

BOOL SetCellComment( int nRow, int nCol, LPCSTR pszcomment, BOOL bInteractive = FALSE )

Parameters

nRow
[input] Row number with zero offset
nCol
[input] Column number with zero offset
pszcomment
[input] default value to set comment
bInteractive
[input] if true, it will pop up the interactive control to input comment

Return

TRUE for success, otherwise FALSE

Examples

EX1

void Worksheet_SetCellComment()
{
        Worksheet wks;
        wks.Create("origin");
        
        int row=3; 
        int col=1;
        
        string strNote = "some notes";
        wks.SetCellComment(row, col, strNote);

        string strOutput;
        wks.GetCellComment(row, col, strOutput);
        out_str(strOutput);
}

Remark

See Also

Worksheet::GetCellComment

header to Include

origin.h