2.2.4.46.28 Worksheet::GetCellComment

Description

Get cell comment as a string

Syntax

BOOL GetCellComment( int nRow, int nCol, string & comment)

Parameters

nRow
[input] Row number with zero offset
nCol
[input] Column number with zero offset
comment
[output] String to store the comment value

Return

TRUE for success, otherwise FALSE

Examples

EX1

void Worksheet_GetCellComment()
{
	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::SetCellComment

Header to Include

origin.h