Click or drag to resize

CellRange AddComment Method

Overload List
Name Description
Public method Code example AddComment
Adds a comment to the range.
Examples
The following code illustrates how to insert Comments in the Range:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Adding comments to a cell</para><para>ICommentShape comment = worksheet.Range["A1"].AddComment();</para><para>comment.Text= "Comments";</para><para>//Save to file</para><para>workbook.SaveToFile("AddComment.xlsx");</para>
Public method AddComment(Boolean)
Adds a comment to the range.
(Inherited from XlsRange .)
Public method AddComment(ExcelComment)
Adds a comment to the range.
Protected method AddComment(ICommentShape)
Adds a comment to the shape.
(Inherited from XlsRange .)
Top
See Also