Comment
Overview
Comment is a class in Aspose.Cells FOSS for .NET.
Represents a worksheet comment (legacy note) anchored to a single cell. Comments are text annotations attached to cells that provide additional information or context. They are commonly used for review notes, explanations, or collaboration feedback. Comments can be visible or hidden, and can display author information. The comment box size can be customized, and comments support rich text content. var workbook = new Workbook(); var worksheet = workbook.Worksheets[0]; // Add a comment int commentIndex = worksheet.Comments.Add(“A1”); var comment = worksheet.Comments[commentIndex]; comment.Author = “John Doe”; comment.Note = “Please review this data for accuracy.”; comment.IsVisible = true;
Properties: Author, Column, Height, IsVisible, Note, Row, and 1 more.
Description
Comment is a class in the Aspose.Cells FOSS library for .NET that exposes 0 methods and 7 properties for programmatic use.
The class also provides the Row property (gets the row), the Column property (gets the column).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Row | int | Read | Gets the row. |
Column | int | Read | Gets the column. |
Author | string | Read/Write | Gets or sets the author. |
Note | string | Read/Write | Gets or sets the note. |
IsVisible | bool | Read/Write | Gets or sets the is visible. |
Width | int | Read/Write | Gets or sets the width. |
Height | int | Read/Write | Gets or sets the height. |