ExcelCellComment Property |
Gets or sets cell comment.
Namespace:
GemBox.Spreadsheet
Assembly:
GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 45.0.35.1069
Syntaxpublic override ExcelComment Comment { get; set; }
Public Overrides Property Comment As ExcelComment
Get
Set
Property Value
Type:
ExcelComment
Remarks
You can set comment text, set whether comment will be visible when opening xlsx file or not.
Additionally you can get column or row of the excel cell to which this comment is assigned.
Supported only in xlsx.
ExamplesFollowing code demonstrates how to use comments. It shows next features:
- comment text setting
- comment IsVisible property in action
excelFile.Worksheets[0].Cells[0, 0].Comment.Text = "comment1";
excelFile.Worksheets[0].Cells[0, 0].Comment.IsVisible = false;
excelFile.Worksheets(0).Cells(0, 0).Comment.Text = "comment1"
excelFile.Worksheets(0).Cells(0, 0).Comment.IsVisible = False
See Also