WorkbookSettings Class

WorkbookSettings class

Represents all settings of the workbook.


type WorkbookSettings struct  {
	ptr unsafe.Pointer
}

Constructors

MethodDescription

Methods

MethodDescription
IsNullChecks whether the implementation object is nullptr.
DisposeReleases resources.
GetThemeFontGets the default theme font name.
GetAuthorGets and sets the author of the file.
SetAuthorGets and sets the author of the file.
GetCheckCustomNumberFormatIndicates whether checking custom number format when setting Style.Custom.
SetCheckCustomNumberFormatIndicates whether checking custom number format when setting Style.Custom.
GetEnableMacrosEnable macros;
SetEnableMacrosEnable macros;
GetDate1904Gets or sets a value which represents if the workbook uses the 1904 date system.
SetDate1904Gets or sets a value which represents if the workbook uses the 1904 date system.
GetProtectionTypeGets the protection type of the workbook.
GetDisplayDrawingObjectsIndicates whether and how to show objects in the workbook.
SetDisplayDrawingObjectsIndicates whether and how to show objects in the workbook.
GetSheetTabBarWidthWidth of worksheet tab bar (in 1/1000 of window width).
SetSheetTabBarWidthWidth of worksheet tab bar (in 1/1000 of window width).
GetShowTabsGet or sets a value whether the Workbook tabs are displayed.
SetShowTabsGet or sets a value whether the Workbook tabs are displayed.
GetFirstVisibleTabGets or sets the first visible worksheet tab.
SetFirstVisibleTabGets or sets the first visible worksheet tab.
IsHScrollBarVisibleGets or sets a value indicating whether the generated spreadsheet will contain a horizontal scroll bar.
SetIsHScrollBarVisibleGets or sets a value indicating whether the generated spreadsheet will contain a horizontal scroll bar.
IsVScrollBarVisibleGets or sets a value indicating whether the generated spreadsheet will contain a vertical scroll bar.
SetIsVScrollBarVisibleGets or sets a value indicating whether the generated spreadsheet will contain a vertical scroll bar.
GetSharedGets or sets a value that indicates whether the Workbook is shared.
SetSharedGets or sets a value that indicates whether the Workbook is shared.
GetLanguageCodeGets or sets the user interface language of the Workbook version based on CountryCode that has saved the file.
SetLanguageCodeGets or sets the user interface language of the Workbook version based on CountryCode that has saved the file.
GetRegionGets or sets the regional settings for workbook.
SetRegionGets or sets the regional settings for workbook.
GetGlobalizationSettingsGets and sets the globalization settings.
SetGlobalizationSettingsGets and sets the globalization settings.
GetNumberDecimalSeparatorGets or sets the decimal separator for formatting/parsing numeric values. Default is the decimal separator of current Region.
SetNumberDecimalSeparatorGets or sets the decimal separator for formatting/parsing numeric values. Default is the decimal separator of current Region.
GetNumberGroupSeparatorGets 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.
SetNumberGroupSeparatorGets 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.
GetPasswordRepresents Workbook file encryption password.
SetPasswordRepresents Workbook file encryption password.
GetWriteProtectionProvides access to the workbook write protection options.
IsEncryptedGets a value that indicates whether a password is required to open this workbook.
IsProtectedGets a value that indicates whether the structure or window of the Workbook is protected.
IsDefaultEncryptedIndicates whether encrypting the workbook with default password if Structure and Windows of the workbook are locked.
SetIsDefaultEncryptedIndicates whether encrypting the workbook with default password if Structure and Windows of the workbook are locked.
IsMinimizedRepresents whether the generated spreadsheet will be opened Minimized.
SetIsMinimizedRepresents whether the generated spreadsheet will be opened Minimized.
IsHiddenIndicates whether this workbook is hidden.
SetIsHiddenIndicates whether this workbook is hidden.
GetAutoCompressPicturesSpecifies a boolean value that indicates the application automatically compressed pictures in the workbook.
SetAutoCompressPicturesSpecifies a boolean value that indicates the application automatically compressed pictures in the workbook.
GetRemovePersonalInformationTrue if personal information can be removed from the specified workbook.
SetRemovePersonalInformationTrue if personal information can be removed from the specified workbook.
GetHidePivotFieldListGets and sets whether hide the field list for the PivotTable.
SetHidePivotFieldListGets and sets whether hide the field list for the PivotTable.
GetUpdateLinksTypeGets and sets how updates external links when the workbook is opened.
SetUpdateLinksTypeGets and sets how updates external links when the workbook is opened.
SetPageOrientationTypeSet the type of print orientation for the whole workbook.
GetMaxRowGets the max row index, zero-based.
GetMaxColumnGets the max column index, zero-based.
GetDefaultStyleSettingsGets the settings for default values of style-related properties for this workbook.
GetWindowLeftThe distance from the left edge of the client area to the left edge of the window, in unit of point.
SetWindowLeftThe distance from the left edge of the client area to the left edge of the window, in unit of point.
GetWindowLeftInchThe distance from the left edge of the client area to the left edge of the window.In unit of inch.
SetWindowLeftInchThe distance from the left edge of the client area to the left edge of the window.In unit of inch.
GetWindowLeftCMThe distance from the left edge of the client area to the left edge of the window.In unit of centimeter.
SetWindowLeftCMThe distance from the left edge of the client area to the left edge of the window.In unit of centimeter.
GetWindowTopThe distance from the top edge of the client area to the top edge of the window, in unit of point.
SetWindowTopThe distance from the top edge of the client area to the top edge of the window, in unit of point.
GetWindowTopInchThe distance from the top edge of the client area to the top edge of the window, in unit of inch.
SetWindowTopInchThe distance from the top edge of the client area to the top edge of the window, in unit of inch.
GetWindowTopCMThe distance from the top edge of the client area to the top edge of the window, in unit of centimeter.
SetWindowTopCMThe distance from the top edge of the client area to the top edge of the window, in unit of centimeter.
GetWindowWidthThe width of the window, in unit of point.
SetWindowWidthThe width of the window, in unit of point.
GetWindowWidthInchThe width of the window, in unit of inch.
SetWindowWidthInchThe width of the window, in unit of inch.
GetWindowWidthCMThe width of the window, in unit of centimeter.
SetWindowWidthCMThe width of the window, in unit of centimeter.
GetWindowHeightThe height of the window, in unit of point.
SetWindowHeightThe height of the window, in unit of point.
GetWindowHeightInchThe height of the window, in unit of inch.
SetWindowHeightInchThe height of the window, in unit of inch.
GetWindowHeightCMThe height of the window, in unit of centimeter.
SetWindowHeightCMThe height of the window, in unit of centimeter.
GetUpdateAdjacentCellsBorderIndicates whether update adjacent cells’ border.
SetUpdateAdjacentCellsBorderIndicates whether update adjacent cells’ border.
GetSignificantDigitsGets and sets the number of significant digits.The default value is .
SetSignificantDigitsGets and sets the number of significant digits.The default value is .
GetCheckCompatibilityIndicates whether check compatibility with earlier versions when saving workbook.
SetCheckCompatibilityIndicates whether check compatibility with earlier versions when saving workbook.
GetCheckExcelRestrictionWhether 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 lateryou 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.
SetCheckExcelRestrictionWhether 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 lateryou 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.
GetAutoRecoverIndicates whether the file is marked for auto-recovery.
SetAutoRecoverIndicates whether the file is marked for auto-recovery.
GetCrashSaveindicates whether the application last saved the workbook file after a crash.
SetCrashSaveindicates whether the application last saved the workbook file after a crash.
GetDataExtractLoadindicates whether the application last opened the workbook for data recovery.
SetDataExtractLoadindicates whether the application last opened the workbook for data recovery.
GetRepairLoadIndicates whether the application last opened the workbook in safe or repair mode.
SetRepairLoadIndicates whether the application last opened the workbook in safe or repair mode.
GetBuildVersionSpecifies the incremental public release of the application.
SetBuildVersionSpecifies the incremental public release of the application.
GetMemorySettingGets 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.
SetMemorySettingGets 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.
GetPaperSizeGets and sets the default print paper size.
SetPaperSizeGets and sets the default print paper size.
GetMaxRowsOfSharedFormulaGets and sets the max row number of shared formula.
SetMaxRowsOfSharedFormulaGets and sets the max row number of shared formula.
GetComplianceSpecifies the OOXML version for the output document. The default value is Ecma376_2006.
SetComplianceSpecifies the OOXML version for the output document. The default value is Ecma376_2006.
GetQuotePrefixToStyleIndicates whether setting property when entering the string value(which starts with single quote mark ) to the cell
SetQuotePrefixToStyleIndicates whether setting property when entering the string value(which starts with single quote mark ) to the cell
GetFormulaSettingsGets the settings for formula-related features.
GetPropertiesFollowChartPointIndicates whether datapoint properties and datalabels in all charts in this workbook follow their reference.
SetPropertiesFollowChartPointIndicates whether datapoint properties and datalabels in all charts in this workbook follow their reference.
GetDiscardImageEditDataIndicates whether discarding editting image data.
SetDiscardImageEditDataIndicates whether discarding editting image data.
GetDefaultImageResolutionGets and sets default resolution of image.
SetDefaultImageResolutionGets and sets default resolution of image.