java.lang.Objectcom.aspose.cells.WorkbookSettings
public class WorkbookSettings
Property Getters/Setters Summary | ||
---|---|---|
boolean | getAutoCompressPictures() | |
void | setAutoCompressPictures(boolean value) | |
Specifies a boolean value that indicates the application automatically compressed pictures in the workbook. | ||
java.lang.String | getBuildVersion() | |
void | setBuildVersion(java.lang.String value) | |
Specifies the incremental public release of the application. | ||
int | getCalcMode() | |
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. | ||
int | getCalcStackSize() | |
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 stakes of StackOverflowException. If use gets StackOverflowException when calculating formulas, this value should be decreased. | ||
java.lang.String | getCalculationId() | |
void | setCalculationId(java.lang.String value) | |
Specifies the version of the calculation engine used to calculate values in the workbook. | ||
boolean | getCheckComptiliblity() | |
void | setCheckComptiliblity(boolean value) | |
Indicates whether check comptiliblity when saving workbook. | ||
boolean | getCheckExcelRestriction() | |
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. | ||
boolean | getConvertNumericData() | |
void | setConvertNumericData(boolean value) | |
Gets or sets a value that indicates whether the string in text file is converted to numeric data. | ||
boolean | getCreateCalcChain() | |
void | setCreateCalcChain(boolean value) | |
Indicates whether create calculated formulas chain. | ||
boolean | getDate1904() | |
void | setDate1904(boolean value) | |
Gets or sets a value which represents if the workbook uses the 1904 date system. | ||
int | getDisplayDrawingObjects() | |
void | setDisplayDrawingObjects(int value) | |
Indicates whether and how to show objects in the workbook. The value of the property is DisplayDrawingObjects integer constant. | ||
com.aspose.cells.Encoding | getEncoding() | |
void | setEncoding(com.aspose.cells.Encoding value) | |
Gets and sets the default encoding.Only applies for csv file. | ||
int | getFirstVisibleTab() | |
void | setFirstVisibleTab(int value) | |
Gets or sets the first visible worksheet tab. | ||
boolean | isHidden() | |
void | setHidden(boolean value) | |
Indicates whether this workbook is hidden. | ||
boolean | isHScrollBarVisible() | |
void | setHScrollBarVisible(boolean value) | |
Gets or sets a value indicating whether the generated spreadsheet will contain a horizontal scroll bar. | ||
boolean | isMinimized() | |
void | setMinimized(boolean value) | |
Represents whether the generated spreadsheet will be opened Minimized. | ||
boolean | isProtected() | |
Gets a value that indicates whether the Workbook is protected. | ||
boolean | isVScrollBarVisible() | |
void | setVScrollBarVisible(boolean value) | |
Gets or sets a value indicating whether the generated spreadsheet will contain a vertical scroll bar. | ||
boolean | isWriteProtected() | |
void | setWriteProtected(boolean value) | |
Indicates whether this workbook is write protected. | ||
boolean | getIteration() | |
void | setIteration(boolean value) | |
Indicates if Aspose.Cells will use iteration to resolve circular references. | ||
int | getLanguage() | |
void | setLanguage(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. | ||
int | getLanguageCode() | |
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. | ||
java.util.Locale | getLocale() | |
void | setLocale(java.util.Locale value) | |
Gets or sets the Locale used by this workbook. | ||
double | getMaxChange() | |
void | setMaxChange(double value) | |
Returns or sets the maximum number of change that Microsoft Excel can use to resolve a circular reference. | ||
int | getMaxIteration() | |
void | setMaxIteration(int value) | |
Returns or sets the maximum number of iterations that Aspose.Cells can use to resolve a circular reference. | ||
boolean | getParsingFormulaOnOpen() | |
void | setParsingFormulaOnOpen(boolean value) | |
Indicates whether parsing the formula when reading the file. | ||
java.lang.String | getPassword() | |
void | setPassword(java.lang.String value) | |
Represents Workbook file encryption password. | ||
boolean | getPrecisionAsDisplayed() | |
void | setPrecisionAsDisplayed(boolean value) | |
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 | getReCalcOnOpen() | |
void | setReCalcOnOpen(boolean value) | |
Indicates whether re-calculate all formulas on opening file. | ||
boolean | getRecalculateBeforeSave() | |
void | setRecalculateBeforeSave(boolean value) | |
Indicates whether to recalculate before saving the document. | ||
boolean | getReCalculateOnOpen() | |
void | setReCalculateOnOpen(boolean value) | |
Indicates whether re-calculate all formulas on opening file. | ||
boolean | getRecommendReadOnly() | |
void | setRecommendReadOnly(boolean value) | |
Indicates if the Read Only Recommended option is selected. | ||
int | getRegion() | |
void | setRegion(int value) | |
Gets or sets the system regional settings based on CountryCode at the time the file was saved. The value of the property is CountryCode integer constant. | ||
boolean | getShared() | |
void | setShared(boolean value) | |
Gets or sets a value that indicates whether the Workbook is shared. | ||
int | getSheetTabBarWidth() | |
void | setSheetTabBarWidth(int value) | |
Width of worksheet tab bar (in 1/1000 of window width). | ||
boolean | getShowTabs() | |
void | setShowTabs(boolean value) | |
Get or sets a value whether the Workbook tabs are displayed. | ||
boolean | getUpdateAdjacentCellsBorder() | |
void | setUpdateAdjacentCellsBorder(boolean value) | |
Indicates whether update adjacent cells' border. | ||
double | getWindowHeight() | |
void | setWindowHeight(double value) | |
The height of the window, in unit of point. | ||
double | getWindowHeightCM() | |
void | setWindowHeightCM(double value) | |
The height of the window,in unit of centimeter. | ||
double | getWindowHeightInch() | |
void | setWindowHeightInch(double value) | |
The height of the window,in unit of inch. | ||
double | getWindowLeft() | |
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. | ||
double | getWindowLeftCM() | |
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. | ||
double | getWindowLeftInch() | |
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. | ||
double | getWindowTop() | |
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. | ||
double | getWindowTopCM() | |
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. | ||
double | getWindowTopInch() | |
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. | ||
double | getWindowWidth() | |
void | setWindowWidth(double value) | |
The width of the window, in unit of point. | ||
double | getWindowWidthCM() | |
void | setWindowWidthCM(double value) | |
The width of the window,in unit of centimeter. | ||
double | getWindowWidthInch() | |
void | setWindowWidthInch(double value) | |
The width of the window,in unit of inch. | ||
void | setWriteProtectedPassword(java.lang.String value) | |
Sets the proected password to modify the file. |
Property Getters/Setters Detail |
---|
getDate1904/setDate1904 | |
public boolean getDate1904() / public void setDate1904(boolean value) |
getProtectionType | |
public int getProtectionType() |
getPrecisionAsDisplayed/setPrecisionAsDisplayed | |
public boolean getPrecisionAsDisplayed() / public void setPrecisionAsDisplayed(boolean value) |
getReCalculateOnOpen/setReCalculateOnOpen | |
public boolean getReCalculateOnOpen() / public void setReCalculateOnOpen(boolean value) |
getCreateCalcChain/setCreateCalcChain | |
public boolean getCreateCalcChain() / public void setCreateCalcChain(boolean value) |
getReCalcOnOpen/setReCalcOnOpen | |
public boolean getReCalcOnOpen() / public void setReCalcOnOpen(boolean value) |
getDisplayDrawingObjects/setDisplayDrawingObjects | |
public int getDisplayDrawingObjects() / public void setDisplayDrawingObjects(int value) |
getIteration/setIteration | |
public boolean getIteration() / public void setIteration(boolean value) |
getMaxIteration/setMaxIteration | |
public int getMaxIteration() / public void setMaxIteration(int value) |
getMaxChange/setMaxChange | |
public double getMaxChange() / public void setMaxChange(double value) |
getCalcMode/setCalcMode | |
public int getCalcMode() / public void setCalcMode(int value) |
getCalculationId/setCalculationId | |
public java.lang.String getCalculationId() / public void setCalculationId(java.lang.String value) |
getCalcStackSize/setCalcStackSize | |
public int getCalcStackSize() / public void setCalcStackSize(int value) |
getRecalculateBeforeSave/setRecalculateBeforeSave | |
public boolean getRecalculateBeforeSave() / public void setRecalculateBeforeSave(boolean value) |
getSheetTabBarWidth/setSheetTabBarWidth | |
public int getSheetTabBarWidth() / public void setSheetTabBarWidth(int value) |
getShowTabs/setShowTabs | |
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);
getFirstVisibleTab/setFirstVisibleTab | |
public int getFirstVisibleTab() / public void setFirstVisibleTab(int value) |
isHScrollBarVisible/setHScrollBarVisible | |
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);
isVScrollBarVisible/setVScrollBarVisible | |
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);
getShared/setShared | |
public boolean getShared() / public void setShared(boolean value) |
getLanguage/setLanguage | |
public int getLanguage() / public void setLanguage(int value) |
getLanguageCode/setLanguageCode | |
public int getLanguageCode() / public void setLanguageCode(int value) |
getRegion/setRegion | |
public int getRegion() / public void setRegion(int value) |
getLocale/setLocale | |
public java.util.Locale getLocale() / public void setLocale(java.util.Locale value) |
getEncoding/setEncoding | |
public com.aspose.cells.Encoding getEncoding() / public void setEncoding(com.aspose.cells.Encoding value) |
getPassword/setPassword | |
public java.lang.String getPassword() / public void setPassword(java.lang.String value) |
getConvertNumericData/setConvertNumericData | |
public boolean getConvertNumericData() / public void setConvertNumericData(boolean value) |
getRecommendReadOnly/setRecommendReadOnly | |
public boolean getRecommendReadOnly() / public void setRecommendReadOnly(boolean value) |
isWriteProtected/setWriteProtected | |
public boolean isWriteProtected() / public void setWriteProtected(boolean value) |
setWriteProtectedPassword | |
public void setWriteProtectedPassword(java.lang.String value) |
isProtected | |
public boolean isProtected() |
isMinimized/setMinimized | |
public boolean isMinimized() / public void setMinimized(boolean value) |
isHidden/setHidden | |
public boolean isHidden() / public void setHidden(boolean value) |
getAutoCompressPictures/setAutoCompressPictures | |
public boolean getAutoCompressPictures() / public void setAutoCompressPictures(boolean value) |
getParsingFormulaOnOpen/setParsingFormulaOnOpen | |
public boolean getParsingFormulaOnOpen() / public void setParsingFormulaOnOpen(boolean value) |
getWindowLeft/setWindowLeft | |
public double getWindowLeft() / public void setWindowLeft(double value) |
getWindowLeftInch/setWindowLeftInch | |
public double getWindowLeftInch() / public void setWindowLeftInch(double value) |
getWindowLeftCM/setWindowLeftCM | |
public double getWindowLeftCM() / public void setWindowLeftCM(double value) |
getWindowTop/setWindowTop | |
public double getWindowTop() / public void setWindowTop(double value) |
getWindowTopInch/setWindowTopInch | |
public double getWindowTopInch() / public void setWindowTopInch(double value) |
getWindowTopCM/setWindowTopCM | |
public double getWindowTopCM() / public void setWindowTopCM(double value) |
getWindowWidth/setWindowWidth | |
public double getWindowWidth() / public void setWindowWidth(double value) |
getWindowWidthInch/setWindowWidthInch | |
public double getWindowWidthInch() / public void setWindowWidthInch(double value) |
getWindowWidthCM/setWindowWidthCM | |
public double getWindowWidthCM() / public void setWindowWidthCM(double value) |
getWindowHeight/setWindowHeight | |
public double getWindowHeight() / public void setWindowHeight(double value) |
getWindowHeightInch/setWindowHeightInch | |
public double getWindowHeightInch() / public void setWindowHeightInch(double value) |
getWindowHeightCM/setWindowHeightCM | |
public double getWindowHeightCM() / public void setWindowHeightCM(double value) |
getUpdateAdjacentCellsBorder/setUpdateAdjacentCellsBorder | |
public boolean getUpdateAdjacentCellsBorder() / public void setUpdateAdjacentCellsBorder(boolean value) |
getCheckComptiliblity/setCheckComptiliblity | |
public boolean getCheckComptiliblity() / public void setCheckComptiliblity(boolean value) |
getCheckExcelRestriction/setCheckExcelRestriction | |
public boolean getCheckExcelRestriction() / public void setCheckExcelRestriction(boolean value) |
getBuildVersion/setBuildVersion | |
public java.lang.String getBuildVersion() / public void setBuildVersion(java.lang.String value) |