SetComments
Sets the comments with a text string to an object that supports Comments
BOOL SetComments( LPCSTR lpcszComments )
TRUE if OK, FALSE if object does not support comments.
EX1
// Worksheet with at least one column should be active void OriginObject_SetComments_Ex1() { string str; str = "Workbook Comment\r\nThis is a test of some comments\r\nWhich can have multiple lines"; Page pg = Project.Pages(); if(pg) pg.SetComments(str); Worksheet wks = Project.ActiveLayer(); Column col(wks, 0); str = "Column Comment\r\nThis is a test of some comments\r\nWhich can have multiple lines"; if(col) col.SetComments(str); pg.Refresh(); }
Only Column and Page objects support comments
OriginObject::GetComments
origin.h