Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
All Excel worksheets have gridlines by default. They help delineate cells so that it is easy to enter data into particular cells. Gridlines enable us to view a worksheet as a collection of cells, where each cell is easily identifiable.
Aspose.Cells provides a class, Workbook, that represents a Microsoft Excel file. The Workbook class contains a Worksheets collection that allows developers to access each worksheet in the Excel file. A worksheet is represented by the Worksheet class. The Worksheet class provides a wide range of properties and methods for managing a worksheet. To control the visibility of gridlines, use the Worksheet class IsGridlinesVisible property. IsGridlinesVisible is a Boolean property, which means that it can only store a true or false value.
Make the gridlines visible by setting the Worksheet class IsGridlinesVisible property to true.
Hide gridlines by setting the Worksheet class IsGridlinesVisible property to false.
A complete example is given below that demonstrates the use of the IsGridlinesVisible property by opening an excel file(book1.xls), hiding the gridlines on the first worksheet and saving the modified file as output.xls.
All worksheets in an Excel file are composed of cells that are arranged in rows and columns. All rows and columns have unique values that are used to identify them and to identify individual cells. For example, rows are numbered – 1, 2, 3, 4, etc. – and columns are ordered alphabetically – A, B, C, D, etc. The row and column values are displayed in the headers. Using Aspose.Cells, developers can control the visibility of these row and column headers.
Aspose.Cells provides a class, Workbook, that represents a Microsoft Excel file. The Workbook class contains a Worksheets collection that allows developers to access each worksheet in the Excel file. A worksheet is represented by the Worksheet class. The Worksheet class provides a wide range of properties and methods for managing a worksheet. To control the visibility of row and column headers, use the Worksheet class IsRowColumnHeadersVisible property. IsRowColumnHeadersVisible is a Boolean property, which means that it can only store a true or false value.
Make row and column headers visible by setting the Worksheet class IsRowColumnHeadersVisible property to true.
Hide row and column headers by setting the Worksheet class IsRowColumnHeadersVisible property to false.
A complete example is given below that shows how to use the IsRowColumnHeadersVisible property by opening an excel file(book1.xls), hiding the row and column headers on the first worksheet and saving the modified file as output.xls.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.