public class WorkbookSettings
Property Getters/Setters Summary | ||
---|---|---|
boolean | getAutoCompressPictures() | |
void | setAutoCompressPictures(booleanvalue) | |
Specifies a boolean value that indicates the application automatically compressed pictures in the workbook. | ||
boolean | getAutoRecover() | |
void | setAutoRecover(booleanvalue) | |
Indicates whether the file is mark for auto-recovery. | ||
java.lang.String | getBuildVersion() | |
void | setBuildVersion(java.lang.Stringvalue) | |
Specifies the incremental public release of the application. | ||
int | getCalcMode() | |
void | setCalcMode(intvalue) | |
It specifies whether to calculate formulas manually, automatically or automatically except for multiple table operations. The value of the property is CalcModeType integer constant. | ||
int | getCalcStackSize() | |
void | setCalcStackSize(intvalue) | |
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. | ||
java.lang.String | getCalculationId() | |
void | setCalculationId(java.lang.Stringvalue) | |
Specifies the version of the calculation engine used to calculate values in the workbook. | ||
boolean | getCheckCompatibility() | |
void | setCheckCompatibility(booleanvalue) | |
Indicates whether check compatiliblity when saving workbook. | ||
boolean | getCheckComptiliblity() | |
void | setCheckComptiliblity(booleanvalue) | |
Indicates whether check compatiliblity when saving workbook. | ||
boolean | getCheckCustomNumberFormat() | |
void | setCheckCustomNumberFormat(booleanvalue) | |
Indicates whether checking custom number format when setting Style.Custom. | ||
boolean | getCheckExcelRestriction() | |
void | setCheckExcelRestriction(booleanvalue) | |
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. | ||
int | getCompliance() | |
void | setCompliance(intvalue) | |
Specifies the OOXML version for the output document. The default value is Ecma376_2006. The value of the property is OoxmlCompliance integer constant. | ||
boolean | getCrashSave() | |
void | setCrashSave(booleanvalue) | |
indicates whether the application last saved the workbook file after a crash. | ||
boolean | getCreateCalcChain() | |
void | setCreateCalcChain(booleanvalue) | |
Indicates whether create calculated formulas chain. Default is false. | ||
boolean | getDataExtractLoad() | |
void | setDataExtractLoad(booleanvalue) | |
indicates whether the application last opened the workbook for data recovery. | ||
boolean | getDate1904() | |
void | setDate1904(booleanvalue) | |
Gets or sets a value which represents if the workbook uses the 1904 date system. | ||
int | getDisplayDrawingObjects() | |
void | setDisplayDrawingObjects(intvalue) | |
Indicates whether and how to show objects in the workbook. The value of the property is DisplayDrawingObjects integer constant. | ||
boolean | getEnableMacros() | |
void | setEnableMacros(booleanvalue) | |
Enable macros; | ||
int | getFirstVisibleTab() | |
void | setFirstVisibleTab(intvalue) | |
Gets or sets the first visible worksheet tab. | ||
GlobalizationSettings | getGlobalizationSettings() | |
void | ||
Gets and sets the globalization settings. | ||
boolean | getHidePivotFieldList() | |
void | setHidePivotFieldList(booleanvalue) | |
Gets and sets whether hide the field list for the PivotTable. | ||
boolean | isDefaultEncrypted() | |
void | setDefaultEncrypted(booleanvalue) | |
Indicates whether encrypting the workbook with default password if Structure and Windows of the workbook are locked. | ||
boolean | isEncrypted() | |
Gets a value that indicates whether a password is required to open this workbook.
|
||
boolean | isHidden() | |
void | setHidden(booleanvalue) | |
Indicates whether this workbook is hidden. | ||
boolean | isHScrollBarVisible() | |
void | setHScrollBarVisible(booleanvalue) | |
Gets or sets a value indicating whether the generated spreadsheet will contain a horizontal scroll bar. | ||
boolean | isMinimized() | |
void | setMinimized(booleanvalue) | |
Represents whether the generated spreadsheet will be opened Minimized. | ||
boolean | isProtected() | |
Gets a value that indicates whether the structure or window of the Workbook is protected.
|
||
boolean | isVScrollBarVisible() | |
void | setVScrollBarVisible(booleanvalue) | |
Gets or sets a value indicating whether the generated spreadsheet will contain a vertical scroll bar. | ||
boolean | isWriteProtected() | |
void | setWriteProtected(booleanvalue) | |
Indicates whether this workbook is write protected. | ||
boolean | getIteration() | |
void | setIteration(booleanvalue) | |
Indicates if Aspose.Cells will use iteration to resolve circular references. | ||
int | getLanguageCode() | |
void | setLanguageCode(intvalue) | |
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. | ||
java.util.Locale | getLocale() | |
void | setLocale(java.util.Localevalue) | |
Gets or sets the Locale used by this workbook. | ||
double | getMaxChange() | |
void | setMaxChange(doublevalue) | |
Returns or sets the maximum number of change that Microsoft Excel can use to resolve a circular reference. | ||
int | getMaxColumn() | |
Gets the max column index, zero-based.
|
||
int | getMaxIteration() | |
void | setMaxIteration(intvalue) | |
Returns or sets the maximum number of iterations that Aspose.Cells can use to resolve a circular reference. | ||
int | getMaxRow() | |
Gets the max row index, zero-based.
|
||
int | getMaxRowsOfSharedFormula() | |
void | setMaxRowsOfSharedFormula(intvalue) | |
Gets and sets the max row number of shared formula. | ||
int | getMemorySetting() | |
void | setMemorySetting(intvalue) | |
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. | ||
char | getNumberDecimalSeparator() | |
void | setNumberDecimalSeparator(charvalue) | |
Gets or sets the decimal separator for formatting/parsing numeric values. Default is the decimal separator of current Region. | ||
char | getNumberGroupSeparator() | |
void | setNumberGroupSeparator(charvalue) | |
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. | ||
int | getPaperSize() | |
void | setPaperSize(intvalue) | |
Gets and sets the default print paper size. The value of the property is PaperSizeType integer constant. | ||
boolean | getParsingFormulaOnOpen() | |
void | setParsingFormulaOnOpen(booleanvalue) | |
Indicates whether parsing the formula when reading the file. | ||
java.lang.String | getPassword() | |
void | setPassword(java.lang.Stringvalue) | |
Represents Workbook file encryption password. | ||
boolean | getPrecisionAsDisplayed() | |
void | setPrecisionAsDisplayed(booleanvalue) | |
True if calculations in this workbook will be done using only the precision of the numbers as they're displayed | ||
int | getProtectionType() | |
Gets the protection type of the workbook.
The value of the property is ProtectionType integer constant. |
||
boolean | getQuotePrefixToStyle() | |
void | setQuotePrefixToStyle(booleanvalue) | |
Indicates whether setting |
||
boolean | getRecalculateBeforeSave() | |
void | setRecalculateBeforeSave(booleanvalue) | |
Indicates whether to recalculate before saving the document. | ||
boolean | getReCalculateOnOpen() | |
void | setReCalculateOnOpen(booleanvalue) | |
Indicates whether re-calculate all formulas on opening file. | ||
boolean | getRecommendReadOnly() | |
void | setRecommendReadOnly(booleanvalue) | |
Indicates if the Read Only Recommended option is selected. | ||
int | getRegion() | |
void | setRegion(intvalue) | |
Gets or sets the regional settings for workbook. The value of the property is CountryCode integer constant. | ||
boolean | getRemovePersonalInformation() | |
void | setRemovePersonalInformation(booleanvalue) | |
True if personal information can be removed from the specified workbook. | ||
boolean | getRepairLoad() | |
void | setRepairLoad(booleanvalue) | |
Indicates whether the application last opened the workbook in safe or repair mode. | ||
boolean | getShared() | |
void | setShared(booleanvalue) | |
Gets or sets a value that indicates whether the Workbook is shared. | ||
int | getSheetTabBarWidth() | |
void | setSheetTabBarWidth(intvalue) | |
Width of worksheet tab bar (in 1/1000 of window width). | ||
boolean | getShowTabs() | |
void | setShowTabs(booleanvalue) | |
Get or sets a value whether the Workbook tabs are displayed. | ||
int | getSignificantDigits() | |
void | setSignificantDigits(intvalue) | |
Gets and sets the number of significant digits.
The default value is |
||
IStreamProvider | getStreamProvider() | |
void | setStreamProvider(IStreamProvider value) | |
Gets and sets the stream provider for external resource. | ||
boolean | getUpdateAdjacentCellsBorder() | |
void | setUpdateAdjacentCellsBorder(booleanvalue) | |
Indicates whether update adjacent cells' border. | ||
int | getUpdateLinksType() | |
void | setUpdateLinksType(intvalue) | |
Gets and sets how updates external links when the workbook is opened. The value of the property is UpdateLinksType integer constant. | ||
IWarningCallback | getWarningCallback() | |
void | ||
Gets or sets warning callback. | ||
double | getWindowHeight() | |
void | setWindowHeight(doublevalue) | |
The height of the window, in unit of point. | ||
double | getWindowHeightCM() | |
void | setWindowHeightCM(doublevalue) | |
The height of the window, in unit of centimeter. | ||
double | getWindowHeightInch() | |
void | setWindowHeightInch(doublevalue) | |
The height of the window, in unit of inch. | ||
double | getWindowLeft() | |
void | setWindowLeft(doublevalue) | |
The distance from the left edge of the client area to the left edge of the window, in unit of point. | ||
double | getWindowLeftCM() | |
void | setWindowLeftCM(doublevalue) | |
The distance from the left edge of the client area to the left edge of the window. In unit of centimeter. | ||
double | getWindowLeftInch() | |
void | setWindowLeftInch(doublevalue) | |
The distance from the left edge of the client area to the left edge of the window. In unit of inch. | ||
double | getWindowTop() | |
void | setWindowTop(doublevalue) | |
The distance from the top edge of the client area to the top edge of the window, in unit of point. | ||
double | getWindowTopCM() | |
void | setWindowTopCM(doublevalue) | |
The distance from the top edge of the client area to the top edge of the window, in unit of centimeter. | ||
double | getWindowTopInch() | |
void | setWindowTopInch(doublevalue) | |
The distance from the top edge of the client area to the top edge of the window, in unit of inch. | ||
double | getWindowWidth() | |
void | setWindowWidth(doublevalue) | |
The width of the window, in unit of point. | ||
double | getWindowWidthCM() | |
void | setWindowWidthCM(doublevalue) | |
The width of the window, in unit of centimeter. | ||
double | getWindowWidthInch() | |
void | setWindowWidthInch(doublevalue) | |
The width of the window, in unit of inch. | ||
void | setWriteProtectedPassword(java.lang.String value) | |
Sets the protected password to modify the file.
|
||
WriteProtection | getWriteProtection() | |
Provides access to the workbook write protection options.
|
Method Summary | ||
---|---|---|
void | dispose() | |
Releases resources.
|
public IStreamProvider getStreamProvider() / public void setStreamProvider(IStreamProvider value)
public boolean getCheckCustomNumberFormat() / public void setCheckCustomNumberFormat(boolean value)
public boolean getEnableMacros() / public void setEnableMacros(boolean value)
public boolean getDate1904() / public void setDate1904(boolean value)
public int getProtectionType()
public boolean getPrecisionAsDisplayed() / public void setPrecisionAsDisplayed(boolean value)
public boolean getReCalculateOnOpen() / public void setReCalculateOnOpen(boolean value)
public boolean getCreateCalcChain() / public void setCreateCalcChain(boolean value)
public int getDisplayDrawingObjects() / public void setDisplayDrawingObjects(int value)
public boolean getIteration() / public void setIteration(boolean value)
public int getMaxIteration() / public void setMaxIteration(int value)
public double getMaxChange() / public void setMaxChange(double value)
public int getCalcMode() / public void setCalcMode(int value)
public java.lang.String getCalculationId() / public void setCalculationId(java.lang.String value)
public int getCalcStackSize() / public void setCalcStackSize(int value)
public boolean getRecalculateBeforeSave() / public void setRecalculateBeforeSave(boolean value)
public int getSheetTabBarWidth() / public void setSheetTabBarWidth(int value)
public boolean getShowTabs() / public 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);
public int getFirstVisibleTab() / public void setFirstVisibleTab(int value)
public boolean isHScrollBarVisible() / public 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);
public boolean isVScrollBarVisible() / public 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);
public boolean getShared() / public void setShared(boolean value)
public int getLanguageCode() / public void setLanguageCode(int value)
public int getRegion() / public void setRegion(int value)
public java.util.Locale getLocale() / public void setLocale(java.util.Locale value)
public GlobalizationSettings getGlobalizationSettings() / public void setGlobalizationSettings(GlobalizationSettings value)
public char getNumberDecimalSeparator() / public void setNumberDecimalSeparator(char value)
public char getNumberGroupSeparator() / public void setNumberGroupSeparator(char value)
public java.lang.String getPassword() / public void setPassword(java.lang.String value)
public WriteProtection getWriteProtection()
public boolean getRecommendReadOnly() / public void setRecommendReadOnly(boolean value)
public boolean isWriteProtected() / public void setWriteProtected(boolean value)
public void setWriteProtectedPassword(java.lang.String value)
public boolean isEncrypted()
public boolean isProtected()
public boolean isDefaultEncrypted() / public void setDefaultEncrypted(boolean value)
public boolean isMinimized() / public void setMinimized(boolean value)
public boolean isHidden() / public void setHidden(boolean value)
public boolean getAutoCompressPictures() / public void setAutoCompressPictures(boolean value)
public boolean getRemovePersonalInformation() / public void setRemovePersonalInformation(boolean value)
public boolean getHidePivotFieldList() / public void setHidePivotFieldList(boolean value)
public int getUpdateLinksType() / public void setUpdateLinksType(int value)
public int getMaxRow()
public int getMaxColumn()
public boolean getParsingFormulaOnOpen() / public void setParsingFormulaOnOpen(boolean value)
public double getWindowLeft() / public void setWindowLeft(double value)
public double getWindowLeftInch() / public void setWindowLeftInch(double value)
public double getWindowLeftCM() / public void setWindowLeftCM(double value)
public double getWindowTop() / public void setWindowTop(double value)
public double getWindowTopInch() / public void setWindowTopInch(double value)
public double getWindowTopCM() / public void setWindowTopCM(double value)
public double getWindowWidth() / public void setWindowWidth(double value)
public double getWindowWidthInch() / public void setWindowWidthInch(double value)
public double getWindowWidthCM() / public void setWindowWidthCM(double value)
public double getWindowHeight() / public void setWindowHeight(double value)
public double getWindowHeightInch() / public void setWindowHeightInch(double value)
public double getWindowHeightCM() / public void setWindowHeightCM(double value)
public boolean getUpdateAdjacentCellsBorder() / public void setUpdateAdjacentCellsBorder(boolean value)
public int getSignificantDigits() / public void setSignificantDigits(int value)
public boolean getCheckComptiliblity() / public void setCheckComptiliblity(boolean value)
public boolean getCheckCompatibility() / public void setCheckCompatibility(boolean value)
public boolean getCheckExcelRestriction() / public void setCheckExcelRestriction(boolean value)
public boolean getAutoRecover() / public void setAutoRecover(boolean value)
public boolean getCrashSave() / public void setCrashSave(boolean value)
public boolean getDataExtractLoad() / public void setDataExtractLoad(boolean value)
public boolean getRepairLoad() / public void setRepairLoad(boolean value)
public java.lang.String getBuildVersion() / public void setBuildVersion(java.lang.String value)
public int getMemorySetting() / public void setMemorySetting(int value)
public int getPaperSize() / public void setPaperSize(int value)
public IWarningCallback getWarningCallback() / public void setWarningCallback(IWarningCallback value)
public int getMaxRowsOfSharedFormula() / public void setMaxRowsOfSharedFormula(int value)
public int getCompliance() / public void setCompliance(int value)
public boolean getQuotePrefixToStyle() / public void setQuotePrefixToStyle(boolean value)