Syncfusion.XlsIO.Base
Example 


Syncfusion.XlsIO Namespace > IWorksheet Interface : IsGridLinesVisible Property

IsGridLinesVisible Property

True if grid lines are visible. otherwise, False.
Syntax
'Declaration
 
Property IsGridLinesVisible As Boolean
'Usage
 
Dim instance As IWorksheet
Dim value As Boolean
 
instance.IsGridLinesVisible = value
 
value = instance.IsGridLinesVisible
bool IsGridLinesVisible {get; set;}
Example
The following code illustrates how to set visibility for grid lines.
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];
            
            //Set grid line visibility
            worksheet.IsGridLinesVisible = false;
            
            //Save and dispose
            workbook.SaveAs("CellFormats.xlsx");
            workbook.Close();
        }
    }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 16.3460.0.29

See Also