GemBox.Spreadsheet

ExcelComment.Text Property

Gets the comment text assigned to excel cell

public string Text {get; set;}

Property Value

The comment text assigned to excel cell.

Example

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

  1. comment text setting
  2. comment' IsVisible property in action
[Visual Basic]
        
    excelFile.Worksheets(0).Cells(0, 0).Comment.Text = "comment1" 
    excelFile.Worksheets(0).Cells(0, 0).Comment.IsVisible = False
[C#]
    excelFile.Worksheets[ 0 ].Cells[ 0, 0 ].Comment.Text = "comment1";
    excelFile.Worksheets[ 0 ].Cells[ 0, 0 ].Comment.IsVisible = false;

See Also

ExcelComment Class | GemBox.Spreadsheet Namespace