java.lang.Object
com.aspose.cells.WorkbookSettings
public abstract class WorkbookSettings
| Property Getters/Setters Summary | ||
|---|---|---|
abstract boolean | getAutoCompressPictures() | |
abstract void | setAutoCompressPictures(boolean value) | |
| Specifies a boolean value that indicates the application automatically compressed pictures in the workbook. | ||
abstract boolean | getAutoRecover() | |
abstract void | setAutoRecover(boolean value) | |
| Indicates whether the file is mark for auto-recovery. | ||
abstract java.lang.String | getBuildVersion() | |
abstract void | setBuildVersion(java.lang.String value) | |
| Specifies the incremental public release of the application. | ||
abstract int | getCalcMode() | |
abstract void | setCalcMode(int value) | |
| It specifies whether to calculate formulas manually, automatically or automatically except for multiple table operations. The value of the property is CalcModeType integer constant. | ||
abstract int | getCalcStackSize() | |
abstract void | setCalcStackSize(int value) | |
| Specifies the stack size for calculating cells recursively. The large value for this size will give better performance when there are lots of cells need to be calculated recursively. On the other hand, larger value will raise the risk of StackOverflowException. If user gets StackOverflowException when calculating formulas, this value should be decreased. | ||
abstract java.lang.String | getCalculationId() | |
abstract void | setCalculationId(java.lang.String value) | |
| Specifies the version of the calculation engine used to calculate values in the workbook. | ||
abstract boolean | getCheckCompatibility() | |
abstract void | setCheckCompatibility(boolean value) | |
| Indicates whether check compatiliblity when saving workbook. | ||
abstract boolean | getCheckComptiliblity() | |
abstract void | setCheckComptiliblity(boolean value) | |
| Indicates whether check compatiliblity when saving workbook. | ||
abstract boolean | getCheckExcelRestriction() | |
abstract void | setCheckExcelRestriction(boolean value) | |
| 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. | ||
abstract boolean | getCrashSave() | |
abstract void | setCrashSave(boolean value) | |
| indicates whether the application last saved the workbook file after a crash. | ||
abstract boolean | getCreateCalcChain() | |
abstract void | setCreateCalcChain(boolean value) | |
| Indicates whether create calculated formulas chain. | ||
abstract boolean | getDataExtractLoad() | |
abstract void | setDataExtractLoad(boolean value) | |
| indicates whether the application last opened the workbook for data recovery. | ||
abstract boolean | getDate1904() | |
abstract void | setDate1904(boolean value) | |
| Gets or sets a value which represents if the workbook uses the 1904 date system. | ||
abstract int | getDisplayDrawingObjects() | |
abstract void | setDisplayDrawingObjects(int value) | |
| Indicates whether and how to show objects in the workbook. The value of the property is DisplayDrawingObjects integer constant. | ||
abstract boolean | getEnableMacros() | |
abstract void | setEnableMacros(boolean value) | |
| Enable macros; | ||
abstract int | getFirstVisibleTab() | |
abstract void | setFirstVisibleTab(int value) | |
| Gets or sets the first visible worksheet tab. | ||
abstract GlobalizationSettings | getGlobalizationSettings() | |
abstract void | setGlobalizationSettings(GlobalizationSettings value) | |
| Gets and sets the globalization settings. | ||
abstract boolean | getHidePivotFieldList() | |
abstract void | setHidePivotFieldList(boolean value) | |
| Gets and sets whether hide the field list for the PivotTable. | ||
abstract boolean | isDefaultEncrypted() | |
abstract void | setDefaultEncrypted(boolean value) | |
| Indicates whether encrypting the workbook with default password if Structure and Windows of the workbook are locked. | ||
abstract boolean | isEncrypted() | |
| Gets a value that indicates whether a password is required to open this workbook. | ||
abstract boolean | isHidden() | |
abstract void | setHidden(boolean value) | |
| Indicates whether this workbook is hidden. | ||
abstract boolean | isHScrollBarVisible() | |
abstract void | setHScrollBarVisible(boolean value) | |
| Gets or sets a value indicating whether the generated spreadsheet will contain a horizontal scroll bar. | ||
abstract boolean | isMinimized() | |
abstract void | setMinimized(boolean value) | |
| Represents whether the generated spreadsheet will be opened Minimized. | ||
abstract boolean | isProtected() | |
| Gets a value that indicates whether the structure or window of the Workbook is protected. | ||
abstract boolean | isVScrollBarVisible() | |
abstract void | setVScrollBarVisible(boolean value) | |
| Gets or sets a value indicating whether the generated spreadsheet will contain a vertical scroll bar. | ||
abstract boolean | isWriteProtected() | |
abstract void | setWriteProtected(boolean value) | |
| Indicates whether this workbook is write protected. | ||
abstract boolean | getIteration() | |
abstract void | setIteration(boolean value) | |
| Indicates if Aspose.Cells will use iteration to resolve circular references. | ||
abstract int | getLanguageCode() | |
abstract void | setLanguageCode(int value) | |
| Gets or sets the user interface language of the Workbook version based on CountryCode that has saved the file. The value of the property is CountryCode integer constant. | ||
abstract java.util.Locale | getLocale() | |
abstract void | setLocale(java.util.Locale value) | |
| Gets or sets the Locale used by this workbook. | ||
abstract double | getMaxChange() | |
abstract void | setMaxChange(double value) | |
| Returns or sets the maximum number of change that Microsoft Excel can use to resolve a circular reference. | ||
abstract int | getMaxIteration() | |
abstract void | setMaxIteration(int value) | |
| Returns or sets the maximum number of iterations that Aspose.Cells can use to resolve a circular reference. | ||
abstract int | getMemorySetting() | |
abstract void | setMemorySetting(int value) | |
| 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. The value of the property is MemorySetting integer constant. | ||
abstract char | getNumberDecimalSeparator() | |
abstract void | setNumberDecimalSeparator(char value) | |
| Gets or sets the decimal separator for formatting/parsing numeric values. Default is the decimal separator of current Region. | ||
abstract char | getNumberGroupSeparator() | |
abstract void | setNumberGroupSeparator(char value) | |
| 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. | ||
abstract int | getPaperSize() | |
abstract void | setPaperSize(int value) | |
| Gets and sets the default print paper size. The value of the property is PaperSizeType integer constant. | ||
abstract boolean | getParsingFormulaOnOpen() | |
abstract void | setParsingFormulaOnOpen(boolean value) | |
| Indicates whether parsing the formula when reading the file. | ||
abstract java.lang.String | getPassword() | |
abstract void | setPassword(java.lang.String value) | |
| Represents Workbook file encryption password. | ||
abstract boolean | getPrecisionAsDisplayed() | |
abstract void | setPrecisionAsDisplayed(boolean value) | |
| True if calculations in this workbook will be done using only the precision of the numbers as they're displayed | ||
abstract int | getProtectionType() | |
| Gets the protection type of the workbook. The value of the property is ProtectionType integer constant. | ||
abstract boolean | getRecalculateBeforeSave() | |
abstract void | setRecalculateBeforeSave(boolean value) | |
| Indicates whether to recalculate before saving the document. | ||
abstract boolean | getReCalculateOnOpen() | |
abstract void | setReCalculateOnOpen(boolean value) | |
| Indicates whether re-calculate all formulas on opening file. | ||
abstract boolean | getRecommendReadOnly() | |
abstract void | setRecommendReadOnly(boolean value) | |
| Indicates if the Read Only Recommended option is selected. | ||
abstract int | getRegion() | |
abstract void | setRegion(int value) | |
| Gets or sets the regional settings for workbook. The value of the property is CountryCode integer constant. | ||
abstract boolean | getRemovePersonalInformation() | |
abstract void | setRemovePersonalInformation(boolean value) | |
| True if personal information can be removed from the specified workbook. | ||
abstract boolean | getRepairLoad() | |
abstract void | setRepairLoad(boolean value) | |
| Indicates whether the application last opened the workbook in safe or repair mode. | ||
abstract boolean | getShared() | |
abstract void | setShared(boolean value) | |
| Gets or sets a value that indicates whether the Workbook is shared. | ||
abstract int | getSheetTabBarWidth() | |
abstract void | setSheetTabBarWidth(int value) | |
| Width of worksheet tab bar (in 1/1000 of window width). | ||
abstract boolean | getShowTabs() | |
abstract void | setShowTabs(boolean value) | |
| Get or sets a value whether the Workbook tabs are displayed. | ||
abstract boolean | getUpdateAdjacentCellsBorder() | |
abstract void | setUpdateAdjacentCellsBorder(boolean value) | |
| Indicates whether update adjacent cells' border. | ||
abstract int | getUpdateLinksType() | |
abstract void | setUpdateLinksType(int value) | |
| Gets and sets how updates external links when the workbook is opened. The value of the property is UpdateLinksType integer constant. | ||
abstract double | getWindowHeight() | |
abstract void | setWindowHeight(double value) | |
| The height of the window, in unit of point. | ||
abstract double | getWindowHeightCM() | |
abstract void | setWindowHeightCM(double value) | |
| The height of the window, in unit of centimeter. | ||
abstract double | getWindowHeightInch() | |
abstract void | setWindowHeightInch(double value) | |
| The height of the window, in unit of inch. | ||
abstract double | getWindowLeft() | |
abstract void | setWindowLeft(double value) | |
| The distance from the left edge of the client area to the left edge of the window, in unit of point. | ||
abstract double | getWindowLeftCM() | |
abstract void | setWindowLeftCM(double value) | |
| The distance from the left edge of the client area to the left edge of the window. In unit of centimeter. | ||
abstract double | getWindowLeftInch() | |
abstract void | setWindowLeftInch(double value) | |
| The distance from the left edge of the client area to the left edge of the window. In unit of inch. | ||
abstract double | getWindowTop() | |
abstract void | setWindowTop(double value) | |
| The distance from the top edge of the client area to the top edge of the window, in unit of point. | ||
abstract double | getWindowTopCM() | |
abstract void | setWindowTopCM(double value) | |
| The distance from the top edge of the client area to the top edge of the window, in unit of centimeter. | ||
abstract double | getWindowTopInch() | |
abstract void | setWindowTopInch(double value) | |
| The distance from the top edge of the client area to the top edge of the window, in unit of inch. | ||
abstract double | getWindowWidth() | |
abstract void | setWindowWidth(double value) | |
| The width of the window, in unit of point. | ||
abstract double | getWindowWidthCM() | |
abstract void | setWindowWidthCM(double value) | |
| The width of the window, in unit of centimeter. | ||
abstract double | getWindowWidthInch() | |
abstract void | setWindowWidthInch(double value) | |
| The width of the window, in unit of inch. | ||
abstract void | setWriteProtectedPassword(java.lang.String value) | |
| Sets the protected password to modify the file. | ||
abstract WriteProtection | getWriteProtection() | |
| Provides access to the workbook write protection options. | ||
| Property Getters/Setters Detail |
|---|
getEnableMacros/setEnableMacros | |
public abstract boolean getEnableMacros() / public abstract void setEnableMacros(boolean value) | |
getDate1904/setDate1904 | |
public abstract boolean getDate1904() / public abstract void setDate1904(boolean value) | |
getProtectionType | |
public abstract int getProtectionType() | |
getPrecisionAsDisplayed/setPrecisionAsDisplayed | |
public abstract boolean getPrecisionAsDisplayed() / public abstract void setPrecisionAsDisplayed(boolean value) | |
getReCalculateOnOpen/setReCalculateOnOpen | |
public abstract boolean getReCalculateOnOpen() / public abstract void setReCalculateOnOpen(boolean value) | |
getCreateCalcChain/setCreateCalcChain | |
public abstract boolean getCreateCalcChain() / public abstract void setCreateCalcChain(boolean value) | |
getDisplayDrawingObjects/setDisplayDrawingObjects | |
public abstract int getDisplayDrawingObjects() / public abstract void setDisplayDrawingObjects(int value) | |
getIteration/setIteration | |
public abstract boolean getIteration() / public abstract void setIteration(boolean value) | |
getMaxIteration/setMaxIteration | |
public abstract int getMaxIteration() / public abstract void setMaxIteration(int value) | |
getMaxChange/setMaxChange | |
public abstract double getMaxChange() / public abstract void setMaxChange(double value) | |
getCalcMode/setCalcMode | |
public abstract int getCalcMode() / public abstract void setCalcMode(int value) | |
getCalculationId/setCalculationId | |
public abstract java.lang.String getCalculationId() / public abstract void setCalculationId(java.lang.String value) | |
getCalcStackSize/setCalcStackSize | |
public abstract int getCalcStackSize() / public abstract void setCalcStackSize(int value) | |
getRecalculateBeforeSave/setRecalculateBeforeSave | |
public abstract boolean getRecalculateBeforeSave() / public abstract void setRecalculateBeforeSave(boolean value) | |
getSheetTabBarWidth/setSheetTabBarWidth | |
public abstract int getSheetTabBarWidth() / public abstract void setSheetTabBarWidth(int value) | |
getShowTabs/setShowTabs | |
public abstract boolean getShowTabs() / public abstract void setShowTabs(boolean value) | |
Example:
The following code hides the Sheet Tabs and Tab Scrolling Buttons for the spreadsheet.// Hide the spreadsheet tabs. workbook.getSettings().setShowTabs(false);
getFirstVisibleTab/setFirstVisibleTab | |
public abstract int getFirstVisibleTab() / public abstract void setFirstVisibleTab(int value) | |
isHScrollBarVisible/setHScrollBarVisible | |
public abstract boolean isHScrollBarVisible() / public abstract void setHScrollBarVisible(boolean value) | |
Example:
The following code makes the horizontal scroll bar invisible for the spreadsheet.// Hide the horizontal scroll bar of the Excel file. workbook.getSettings().setHScrollBarVisible(false);
isVScrollBarVisible/setVScrollBarVisible | |
public abstract boolean isVScrollBarVisible() / public abstract void setVScrollBarVisible(boolean value) | |
Example:
The following code makes the vertical scroll bar invisible for the spreadsheet.// Hide the vertical scroll bar of the Excel file. workbook.getSettings().setVScrollBarVisible(false);
getShared/setShared | |
public abstract boolean getShared() / public abstract void setShared(boolean value) | |
getLanguageCode/setLanguageCode | |
public abstract int getLanguageCode() / public abstract void setLanguageCode(int value) | |
getRegion/setRegion | |
public abstract int getRegion() / public abstract void setRegion(int value) | |
getLocale/setLocale | |
public abstract java.util.Locale getLocale() / public abstract void setLocale(java.util.Locale value) | |
getGlobalizationSettings/setGlobalizationSettings | |
public abstract GlobalizationSettings getGlobalizationSettings() / public abstract void setGlobalizationSettings(GlobalizationSettings value) | |
getNumberDecimalSeparator/setNumberDecimalSeparator | |
public abstract char getNumberDecimalSeparator() / public abstract void setNumberDecimalSeparator(char value) | |
getNumberGroupSeparator/setNumberGroupSeparator | |
public abstract char getNumberGroupSeparator() / public abstract void setNumberGroupSeparator(char value) | |
getPassword/setPassword | |
public abstract java.lang.String getPassword() / public abstract void setPassword(java.lang.String value) | |
getWriteProtection | |
public abstract WriteProtection getWriteProtection() | |
getRecommendReadOnly/setRecommendReadOnly | |
public abstract boolean getRecommendReadOnly() / public abstract void setRecommendReadOnly(boolean value) | |
isWriteProtected/setWriteProtected | |
public abstract boolean isWriteProtected() / public abstract void setWriteProtected(boolean value) | |
setWriteProtectedPassword | |
public abstract void setWriteProtectedPassword(java.lang.String value) | |
isEncrypted | |
public abstract boolean isEncrypted() | |
isProtected | |
public abstract boolean isProtected() | |
isDefaultEncrypted/setDefaultEncrypted | |
public abstract boolean isDefaultEncrypted() / public abstract void setDefaultEncrypted(boolean value) | |
isMinimized/setMinimized | |
public abstract boolean isMinimized() / public abstract void setMinimized(boolean value) | |
isHidden/setHidden | |
public abstract boolean isHidden() / public abstract void setHidden(boolean value) | |
getAutoCompressPictures/setAutoCompressPictures | |
public abstract boolean getAutoCompressPictures() / public abstract void setAutoCompressPictures(boolean value) | |
getRemovePersonalInformation/setRemovePersonalInformation | |
public abstract boolean getRemovePersonalInformation() / public abstract void setRemovePersonalInformation(boolean value) | |
getHidePivotFieldList/setHidePivotFieldList | |
public abstract boolean getHidePivotFieldList() / public abstract void setHidePivotFieldList(boolean value) | |
getUpdateLinksType/setUpdateLinksType | |
public abstract int getUpdateLinksType() / public abstract void setUpdateLinksType(int value) | |
getParsingFormulaOnOpen/setParsingFormulaOnOpen | |
public abstract boolean getParsingFormulaOnOpen() / public abstract void setParsingFormulaOnOpen(boolean value) | |
getWindowLeft/setWindowLeft | |
public abstract double getWindowLeft() / public abstract void setWindowLeft(double value) | |
getWindowLeftInch/setWindowLeftInch | |
public abstract double getWindowLeftInch() / public abstract void setWindowLeftInch(double value) | |
getWindowLeftCM/setWindowLeftCM | |
public abstract double getWindowLeftCM() / public abstract void setWindowLeftCM(double value) | |
getWindowTop/setWindowTop | |
public abstract double getWindowTop() / public abstract void setWindowTop(double value) | |
getWindowTopInch/setWindowTopInch | |
public abstract double getWindowTopInch() / public abstract void setWindowTopInch(double value) | |
getWindowTopCM/setWindowTopCM | |
public abstract double getWindowTopCM() / public abstract void setWindowTopCM(double value) | |
getWindowWidth/setWindowWidth | |
public abstract double getWindowWidth() / public abstract void setWindowWidth(double value) | |
getWindowWidthInch/setWindowWidthInch | |
public abstract double getWindowWidthInch() / public abstract void setWindowWidthInch(double value) | |
getWindowWidthCM/setWindowWidthCM | |
public abstract double getWindowWidthCM() / public abstract void setWindowWidthCM(double value) | |
getWindowHeight/setWindowHeight | |
public abstract double getWindowHeight() / public abstract void setWindowHeight(double value) | |
getWindowHeightInch/setWindowHeightInch | |
public abstract double getWindowHeightInch() / public abstract void setWindowHeightInch(double value) | |
getWindowHeightCM/setWindowHeightCM | |
public abstract double getWindowHeightCM() / public abstract void setWindowHeightCM(double value) | |
getUpdateAdjacentCellsBorder/setUpdateAdjacentCellsBorder | |
public abstract boolean getUpdateAdjacentCellsBorder() / public abstract void setUpdateAdjacentCellsBorder(boolean value) | |
getCheckComptiliblity/setCheckComptiliblity | |
public abstract boolean getCheckComptiliblity() / public abstract void setCheckComptiliblity(boolean value) | |
getCheckCompatibility/setCheckCompatibility | |
public abstract boolean getCheckCompatibility() / public abstract void setCheckCompatibility(boolean value) | |
getCheckExcelRestriction/setCheckExcelRestriction | |
public abstract boolean getCheckExcelRestriction() / public abstract void setCheckExcelRestriction(boolean value) | |
getAutoRecover/setAutoRecover | |
public abstract boolean getAutoRecover() / public abstract void setAutoRecover(boolean value) | |
getCrashSave/setCrashSave | |
public abstract boolean getCrashSave() / public abstract void setCrashSave(boolean value) | |
getDataExtractLoad/setDataExtractLoad | |
public abstract boolean getDataExtractLoad() / public abstract void setDataExtractLoad(boolean value) | |
getRepairLoad/setRepairLoad | |
public abstract boolean getRepairLoad() / public abstract void setRepairLoad(boolean value) | |
getBuildVersion/setBuildVersion | |
public abstract java.lang.String getBuildVersion() / public abstract void setBuildVersion(java.lang.String value) | |
getMemorySetting/setMemorySetting | |
public abstract int getMemorySetting() / public abstract void setMemorySetting(int value) | |
getPaperSize/setPaperSize | |
public abstract int getPaperSize() / public abstract void setPaperSize(int value) | |