Returns an IComment interface that represents the comment of the specified cell.
[Visual Basic] Property ReadOnly Comment As IComment [C#] IComment Comment { get; } [C++] __property IComment* get_Comment(); [JScript] function get Comment() : IComment
The following example sets the comment for A1 cell.
[C#]
IRange cell = book.Worksheets[1].Range["A1"];
cell.AddComment();
cell.Comment.Text = "My comment";
[Visual Basic]
Dim cell As IRange = book.Worksheets(1).Range("A1")
cell.AddComment()
cell.Comment.Text = "My comment"
[C++]
IRange* cell;
cell = book->Worksheets->Item[1]->Range->Item[S"A1"];
cell->AddComment();
cell->Comment->Text = S"My comment";
IRange Interface | NativeExcel Namespace | Formula Property