
## WorkbookSettings class

Represents all settings of the workbook.



The WorkbookSettings type exposes the following members:

### Properties
| Property | Description |
| :- | :- |
| [stream_provider](/cells/python-net/aspose.cells/workbooksettings/stream_provider) | Gets and sets the stream provider for external resource. |
| [resource_provider](/cells/python-net/aspose.cells/workbooksettings/resource_provider) | Gets and sets the stream provider for external resource, such as loading image data for picture of type "LinkToFile". |
| [author](/cells/python-net/aspose.cells/workbooksettings/author) | Gets and sets the author of the file. |
| [check_custom_number_format](/cells/python-net/aspose.cells/workbooksettings/check_custom_number_format) | Indicates whether checking custom number format when setting Style.Custom. |
| [enable_macros](/cells/python-net/aspose.cells/workbooksettings/enable_macros) | Enable macros; |
| [date1904](/cells/python-net/aspose.cells/workbooksettings/date1904) | Gets or sets a value which represents if the workbook uses the 1904 date system. |
| [protection_type](/cells/python-net/aspose.cells/workbooksettings/protection_type) | Gets the protection type of the workbook. |
| [display_drawing_objects](/cells/python-net/aspose.cells/workbooksettings/display_drawing_objects) | Indicates whether and how to show objects in the workbook. |
| [sheet_tab_bar_width](/cells/python-net/aspose.cells/workbooksettings/sheet_tab_bar_width) | Width of worksheet tab bar (in 1/1000 of window width). |
| [show_tabs](/cells/python-net/aspose.cells/workbooksettings/show_tabs) | Get or sets a value whether the Workbook tabs are displayed. |
| [first_visible_tab](/cells/python-net/aspose.cells/workbooksettings/first_visible_tab) | Gets or sets the first visible worksheet tab. |
| [is_h_scroll_bar_visible](/cells/python-net/aspose.cells/workbooksettings/is_h_scroll_bar_visible) | Gets or sets a value indicating whether the generated spreadsheet will contain a horizontal scroll bar. |
| [is_v_scroll_bar_visible](/cells/python-net/aspose.cells/workbooksettings/is_v_scroll_bar_visible) | Gets or sets a value indicating whether the generated spreadsheet will contain a vertical scroll bar. |
| [shared](/cells/python-net/aspose.cells/workbooksettings/shared) | Gets or sets a value that indicates whether the Workbook is shared. |
| [language_code](/cells/python-net/aspose.cells/workbooksettings/language_code) | Gets or sets the user interface language of the Workbook version based on CountryCode that has saved the file. |
| [region](/cells/python-net/aspose.cells/workbooksettings/region) | Gets or sets the regional settings for workbook. |
| [globalization_settings](/cells/python-net/aspose.cells/workbooksettings/globalization_settings) | Gets and sets the globalization settings. |
| [number_decimal_separator](/cells/python-net/aspose.cells/workbooksettings/number_decimal_separator) | Gets or sets the decimal separator for formatting/parsing numeric values. Default is the decimal separator of current Region. |
| [number_group_separator](/cells/python-net/aspose.cells/workbooksettings/number_group_separator) | Gets or sets the character that separates groups of digits to the left of the decimal in numeric values. Default is the group separator of current Region. |
| [password](/cells/python-net/aspose.cells/workbooksettings/password) | Represents Workbook file encryption password. |
| [write_protection](/cells/python-net/aspose.cells/workbooksettings/write_protection) | Provides access to the workbook write protection options. |
| [is_encrypted](/cells/python-net/aspose.cells/workbooksettings/is_encrypted) | Gets a value that indicates whether a password is required to open this workbook. |
| [is_protected](/cells/python-net/aspose.cells/workbooksettings/is_protected) | Gets a value that indicates whether the structure or window of the Workbook is protected. |
| [is_default_encrypted](/cells/python-net/aspose.cells/workbooksettings/is_default_encrypted) | Indicates whether encrypting the workbook with default password if Structure and Windows of the workbook are locked. |
| [is_minimized](/cells/python-net/aspose.cells/workbooksettings/is_minimized) | Represents whether the generated spreadsheet will be opened Minimized. |
| [is_hidden](/cells/python-net/aspose.cells/workbooksettings/is_hidden) | Indicates whether this workbook is hidden. |
| [auto_compress_pictures](/cells/python-net/aspose.cells/workbooksettings/auto_compress_pictures) | Specifies a boolean value that indicates the application automatically compressed pictures in the workbook. |
| [remove_personal_information](/cells/python-net/aspose.cells/workbooksettings/remove_personal_information) | True if personal information can be removed from the specified workbook. |
| [hide_pivot_field_list](/cells/python-net/aspose.cells/workbooksettings/hide_pivot_field_list) | Gets and sets whether hide the field list for the PivotTable. |
| [max_unique_items_per_field](/cells/python-net/aspose.cells/workbooksettings/max_unique_items_per_field) | Gets and set the limitation of unique items per field |
| [update_links_type](/cells/python-net/aspose.cells/workbooksettings/update_links_type) | Gets and sets how updates external links when the workbook is opened. |
| [max_row](/cells/python-net/aspose.cells/workbooksettings/max_row) | Gets the max row index, zero-based. |
| [max_column](/cells/python-net/aspose.cells/workbooksettings/max_column) | Gets the max column index, zero-based. |
| [smart_tag_options](/cells/python-net/aspose.cells/workbooksettings/smart_tag_options) | Gets the options of the smart tag. |
| [default_style_settings](/cells/python-net/aspose.cells/workbooksettings/default_style_settings) | Gets the settings for default values of style-related properties for this workbook. |
| [window_left](/cells/python-net/aspose.cells/workbooksettings/window_left) | The distance from the left edge of the client area to the left edge of the window, in unit of point. |
| [window_left_inch](/cells/python-net/aspose.cells/workbooksettings/window_left_inch) | The distance from the left edge of the client area to the left edge of the window.<br/>In unit of inch. |
| [window_left_cm](/cells/python-net/aspose.cells/workbooksettings/window_left_cm) | The distance from the left edge of the client area to the left edge of the window.<br/>In unit of centimeter. |
| [window_top](/cells/python-net/aspose.cells/workbooksettings/window_top) | The distance from the top edge of the client area to the top edge of the window, in unit of point. |
| [window_top_inch](/cells/python-net/aspose.cells/workbooksettings/window_top_inch) | The distance from the top edge of the client area to the top edge of the window, in unit of inch. |
| [window_top_cm](/cells/python-net/aspose.cells/workbooksettings/window_top_cm) | The distance from the top edge of the client area to the top edge of the window, in unit of centimeter. |
| [window_width](/cells/python-net/aspose.cells/workbooksettings/window_width) | The width of the window, in unit of point. |
| [window_width_inch](/cells/python-net/aspose.cells/workbooksettings/window_width_inch) | The width of the window, in unit of inch. |
| [window_width_cm](/cells/python-net/aspose.cells/workbooksettings/window_width_cm) | The width of the window, in unit of centimeter. |
| [window_height](/cells/python-net/aspose.cells/workbooksettings/window_height) | The height of the window, in unit of point. |
| [window_height_inch](/cells/python-net/aspose.cells/workbooksettings/window_height_inch) | The height of the window, in unit of inch. |
| [window_height_cm](/cells/python-net/aspose.cells/workbooksettings/window_height_cm) | The height of the window, in unit of centimeter. |
| [update_adjacent_cells_border](/cells/python-net/aspose.cells/workbooksettings/update_adjacent_cells_border) | Indicates whether update adjacent cells' border. |
| [significant_digits](/cells/python-net/aspose.cells/workbooksettings/significant_digits) | Gets and sets the number of significant digits.<br/>The default value is [`CellsHelper.significant_digits`](/cells/python-net/aspose.cells/cellshelper#significant_digits). |
| [significant_digits_type](/cells/python-net/aspose.cells/workbooksettings/significant_digits_type) | Gets and sets the type of significant digits for outputing numeric<br/>values in this workbook. Default value is [`CellsHelper.significant_digits_type`](/cells/python-net/aspose.cells/cellshelper#significant_digits_type). |
| [check_compatibility](/cells/python-net/aspose.cells/workbooksettings/check_compatibility) | Indicates whether check compatibility with earlier versions when saving workbook. |
| [check_excel_restriction](/cells/python-net/aspose.cells/workbooksettings/check_excel_restriction) | Whether check restriction of excel file when user modify cells related objects.<br/>For example, excel does not allow inputting string value longer than 32K.<br/>When you input a value longer than 32K such as by Cell.PutValue(string), if this property is true, you will get an Exception.<br/>If this property is false, we will accept your input string value as the cell's value so that later<br/>you can output the complete string value for other file formats such as CSV.<br/>However, if you have set such kind of value that is invalid for excel file format,<br/>you should not save the workbook as excel file format later. Otherwise there may be unexpected error for the generated excel file. |
| [auto_recover](/cells/python-net/aspose.cells/workbooksettings/auto_recover) | Indicates whether the file is marked for auto-recovery. |
| [crash_save](/cells/python-net/aspose.cells/workbooksettings/crash_save) | indicates whether the application last saved the workbook file after a crash. |
| [data_extract_load](/cells/python-net/aspose.cells/workbooksettings/data_extract_load) | indicates whether the application last opened the workbook for data recovery. |
| [repair_load](/cells/python-net/aspose.cells/workbooksettings/repair_load) | Indicates whether the application last opened the workbook in safe or repair mode. |
| [build_version](/cells/python-net/aspose.cells/workbooksettings/build_version) | Specifies the incremental public release of the application. |
| [memory_setting](/cells/python-net/aspose.cells/workbooksettings/memory_setting) | Gets or sets the memory usage options. The new option will be taken as the default option for newly created worksheets but does not take effect for existing worksheets. |
| [paper_size](/cells/python-net/aspose.cells/workbooksettings/paper_size) | Gets and sets the default print paper size. |
| [warning_callback](/cells/python-net/aspose.cells/workbooksettings/warning_callback) | Gets or sets warning callback. |
| [max_rows_of_shared_formula](/cells/python-net/aspose.cells/workbooksettings/max_rows_of_shared_formula) | Gets and sets the max row number of shared formula. |
| [compliance](/cells/python-net/aspose.cells/workbooksettings/compliance) | Specifies the OOXML version for the output document. The default value is Ecma376_2006. |
| [quote_prefix_to_style](/cells/python-net/aspose.cells/workbooksettings/quote_prefix_to_style) | Indicates whether setting [`Style.quote_prefix`](/cells/python-net/aspose.cells/style#quote_prefix) property when entering the string value(which starts  with single quote mark ) to the cell |
| [formula_settings](/cells/python-net/aspose.cells/workbooksettings/formula_settings) | Gets the settings for formula-related features. |
| [properties_follow_chart_point](/cells/python-net/aspose.cells/workbooksettings/properties_follow_chart_point) | Indicates whether datapoint properties and datalabels in all charts in this workbook follow their reference. |
| [discard_image_edit_data](/cells/python-net/aspose.cells/workbooksettings/discard_image_edit_data) | Indicates whether discarding editting image data. |
| [default_image_resolution](/cells/python-net/aspose.cells/workbooksettings/default_image_resolution) | Gets and sets default resolution of image. |


### Methods
| Method | Description |
| :- | :- |
| [`get_theme_font(self, type)`](/cells/python-net/aspose.cells/workbooksettings/get_theme_font/#aspose.cells.fontschemetype) | Gets the default theme font name. |
| [`set_page_orientation_type(self, page_orientation_type)`](/cells/python-net/aspose.cells/workbooksettings/set_page_orientation_type/#aspose.cells.pageorientationtype) | Set the type of  print orientation for the whole workbook. |



### Example 


```python
from aspose.cells import Workbook

workbook = Workbook()
settings = workbook.settings

```

### See Also
* module [`aspose.cells`](..)
