Represents a comment object used by Comment in the worksheet.
Namespace: GemBox.SpreadsheetAssembly: 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:
CopyVB.NET
CopyC#
- 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;