JSON API - addComment

addComment

PREMIUM TRIAL / ADVANCED

Adds comments into the Excel spreadsheet.

Note

You are reading the JSON API documentation. For the PHP API method please go to addComment.

JSON data
Key Description
text The content to be inserted.
bold If true the content will be shown in bold characters.
color Hexadecimal color value: "FF0000", "000000"...
font Font family: "Arial", "Calibri"...
fontSize Font size in points.
italic If true displays the content in italics.
strikethrough If true displays text in strikethrough.
subscript If true displays text in subscript.
superscript If true displays text in superscript.
underline Underlines text: "single", "double".
position Cell position in the active sheet: "A1", "C3", "AB7"...
author Author name.
replace If true replaces existing comment in the same position. Default as true.
Code samples

Example #1

Release notes
  • phpxlsx 6.0:
    • new action.