Click or drag to resize
ExcelCellComment Property
Gets or sets cell comment.

Namespace: GemBox.Spreadsheet
Assembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version:
public override ExcelComment Comment { get; set; }

Property Value

Type: ExcelComment

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.


Following code demonstrates how to use comments. It shows next features:

  1. comment text setting
  2. comment IsVisible property in action
excelFile.Worksheets[0].Cells[0, 0].Comment.Text = "comment1";
excelFile.Worksheets[0].Cells[0, 0].Comment.IsVisible = false;
See Also