Syncfusion.XlsIO.Base
Example 


IsVisible Property

Determines whether the object is visible. Read / write Boolean.
Syntax
'Declaration
 
Property IsVisible As Boolean
'Usage
 
Dim instance As IComment
Dim value As Boolean
 
instance.IsVisible = value
 
value = instance.IsVisible
bool IsVisible {get; set;}
Example
The following code illustrates how to set the visibility of the comment.
using Syncfusion.XlsIO;
            
class Program
{
    static void Main()
    {
        using (ExcelEngine excelEngine = new ExcelEngine())
        {
            //Create worksheet
            IApplication application = excelEngine.Excel;
            application.DefaultVersion = ExcelVersion.Excel2013;
            IWorkbook workbook = application.Workbooks.Create(1);
            IWorksheet worksheet = workbook.Worksheets[0];
            
            //Add comment
            IComment comment = worksheet["C2"].AddComment();
            
            //Add text
            comment.Text = "Comment";
            
            //Set visibility
            comment.IsVisible = true;
            
            //Save and dispose
            workbook.SaveAs("Comments.xlsx");
            workbook.Close();
        }
    }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 17.2460.0.34

See Also