GemBox.Spreadsheet

ExcelComment Class

Represents a comment object used by Comment in the worksheet.

For a list of all members of this type, see ExcelComment Members.

System.Object
   GemBox.Spreadsheet.ExcelComment

public class ExcelComment

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

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;

Requirements

Namespace: GemBox.Spreadsheet

Assembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll)

See Also

ExcelComment Members | GemBox.Spreadsheet Namespace | Comment