GemBox.Spreadsheet

ExcelComment.IsVisible Property

Gets or sets a value indicating whether this instance is visible.

public bool IsVisible {get; set;}

Property Value

true if this instance is visible; otherwise, false.

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