Represents a comment object used by Comment in the worksheet.

Namespace: GemBox.Spreadsheet
Assembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 35.0.30.1025

Syntax

C#
public class ExcelComment
Visual Basic
Public Class ExcelComment

Remarks

Supported only in xlsx.

Examples

Following code demonstrates how to use comments. It shows next features:
  1. comment text setting
  2. comment' IsVisible property in action
CopyVB.NET
excelFile.Worksheets(0).Cells(0, 0).Comment.Text = "comment1" 
excelFile.Worksheets(0).Cells(0, 0).Comment.IsVisible = False
CopyC#
excelFile.Worksheets[ 0 ].Cells[ 0, 0 ].Comment.Text = "comment1";
excelFile.Worksheets[ 0 ].Cells[ 0, 0 ].Comment.IsVisible = false;

Inheritance Hierarchy

System..::..Object
  GemBox.Spreadsheet..::..ExcelComment

See Also