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