Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells for Python via .NET 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 Cells collection that represents all cells in the worksheet. The Cells collection provides several methods for managing rows or columns in a worksheet. A few of these are discussed below.
Developers can show any hidden row or column by calling the unhide_row and unhide_column methods of the Cells collection respectively. Both methods take two parameters:
worksheet.Cells.UnhideColumn(5, -1)
Developers can hide a row or column by calling the hide_row and hide_column methods of the Cells collection respectively. Both methods take the row or column index as a parameter to hide the specific row or column.
Developers can hide multiple rows or columns at once by calling the hide_rows and hide_columns methods of the Cells collection respectively. Both methods take the starting row or column index and the number of rows or columns that should be hidden as parameters.
Scroll bars are used to navigate the contents of any file. Normally, there are two kinds of scroll bars:
Microsoft Excel also provides horizontal and vertical scroll bars so that users can scroll through worksheet contents. Using Aspose.Cells for Python via .NET, developers can control the visibility of both types of scroll bars in Excel files.
Aspose.Cells for Python via .NET provides a class, Workbook, that represents an Excel file. The Workbook class provides a wide range of properties and methods for managing an Excel file. To control the visibility of scroll bars, use the Workbook class' WorkbookSettings.is_v_scroll_bar_visible and WorkbookSettings.is_h_scroll_bar_visible properties. These properties are Boolean, which means they can only store true or false values.
Make scroll bars visible by setting the Workbook class' WorkbookSettings.is_v_scroll_bar_visible or WorkbookSettings.is_h_scroll_bar_visible property to true.
Hide scroll bars by setting the Workbook class' WorkbookSettings.is_v_scroll_bar_visible or WorkbookSettings.is_h_scroll_bar_visible property to false.
Sample Code
Below is a complete code example that opens an Excel file, book1.xls, hides both scroll bars, and then saves 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.