-
-
Notifications
You must be signed in to change notification settings - Fork 39
setCellComment
Julian Halliwell edited this page Apr 8, 2017
·
5 revisions
Sets the comment properties of a cell.
setCellComment( workbook, comment, row, column )
-
workbookspreadsheet object -
commentstruct -
rownumeric -
columnnumeric
The comment struct may contain the following keys:
anchorauthorboldcolorcommentfillcolorfonthorizontalalignmentitaliclinestylelinestylecolorsizestrikeoutunderlineverticalalignmentvisible
Refer to the ColdFusion SpreadsheetSetCellComment docs for details
spreadsheet = New spreadsheet();
workbook = spreadsheet.new();
spreadsheet.addColumn( workbook, "a" );
theComment = {
author="cfsimplicity"
,comment="This is the comment in row 1 column 1"
,linestyle="dashsys"
,color="blue"
};
spreadsheet.setCellComment( workbook, theComment, 1, 1 );