The position is available only when the comment is visible. comment = worksheet.Cell( 'A3').Comment Ĭomment.AddText( 'This is a very very very very very long line comment.') If there is a long text line in the comment, you can set AutomaticSize property as ture to show this long text as one line, or keey the long text wrap automatically. var comment = worksheet.Cell( 'A2').Comment Ĭomment.AddText( 'Frist line in comment.').SetBold().SetFontSize(6) Ĭomment.AddText( 'Sencond line.').FontName = 'Times New Roman' Inserting multi-line comments to worksheet is available using RichString property, allows to change comment font style, font size and font name. worksheet.Cell( 'A1').Comment.AddText( 'Single line comment.') Create Single Line CommentĪdd simple comment to cell 'A1'. This C# tutorial shows how to create cell comment in Excel. How to Insert Cell Comment to Spreadsheet in C# language Comments are very useful for reminders & notes for others subject. Comments are notes that can be inserted into any Cell in Excel. Insert text comment to spreadsheet, sinle line and multi-line comment are both supported.
How to Add Comment to Excel in C#.NET Code