Property Getters/Setters Summary | ||
---|---|---|
function | getAuthor() | |
function | setAuthor(value) | |
Gets and sets the author of the file. | ||
function | getAutoCompressPictures() | |
function | setAutoCompressPictures(value) | |
Specifies a boolean value that indicates the application automatically compressed pictures in the workbook. | ||
function | getAutoRecover() | |
function | setAutoRecover(value) | |
Indicates whether the file is marked for auto-recovery. | ||
function | getBuildVersion() | |
function | setBuildVersion(value) | |
Specifies the incremental public release of the application. | ||
function | getCheckCompatibility() | |
function | setCheckCompatibility(value) | |
Indicates whether check compatibility with earlier versions when saving workbook. | ||
function | getCheckCustomNumberFormat() | |
function | setCheckCustomNumberFormat(value) | |
Indicates whether checking custom number format when setting Style.Custom. | ||
function | getCheckExcelRestriction() | |
function | setCheckExcelRestriction(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. | ||
function | getCompliance() | |
function | setCompliance(value) | |
Specifies the OOXML version for the output document. The default value is Ecma376_2006. The value of the property is OoxmlCompliance integer constant. | ||
function | getCrashSave() | |
function | setCrashSave(value) | |
indicates whether the application last saved the workbook file after a crash. | ||
function | getDataExtractLoad() | |
function | setDataExtractLoad(value) | |
indicates whether the application last opened the workbook for data recovery. | ||
function | getDate1904() | |
function | setDate1904(value) | |
Gets or sets a value which represents if the workbook uses the 1904 date system. | ||
function | getDefaultStyleSettings() | |
Gets the settings for default values of style-related properties for this workbook.
|
||
function | getDisplayDrawingObjects() | |
function | setDisplayDrawingObjects(value) | |
Indicates whether and how to show objects in the workbook. The value of the property is DisplayDrawingObjects integer constant. | ||
function | getEnableMacros() | |
function | setEnableMacros(value) | |
Enable macros; | ||
function | getFirstVisibleTab() | |
function | setFirstVisibleTab(value) | |
Gets or sets the first visible worksheet tab. | ||
function | getFormulaSettings() | |
Gets the settings for formula-related features.
|
||
function | getGlobalizationSettings() | |
function | setGlobalizationSettings(value) | |
Gets and sets the globalization settings. | ||
function | getHidePivotFieldList() | |
function | setHidePivotFieldList(value) | |
Gets and sets whether hide the field list for the PivotTable. | ||
function | isDefaultEncrypted() | |
function | setDefaultEncrypted(value) | |
Indicates whether encrypting the workbook with default password if Structure and Windows of the workbook are locked. | ||
function | isEncrypted() | |
Gets a value that indicates whether a password is required to open this workbook.
|
||
function | isHidden() | |
function | setHidden(value) | |
Indicates whether this workbook is hidden. | ||
function | isHScrollBarVisible() | |
function | setHScrollBarVisible(value) | |
Gets or sets a value indicating whether the generated spreadsheet will contain a horizontal scroll bar. | ||
function | isMinimized() | |
function | setMinimized(value) | |
Represents whether the generated spreadsheet will be opened Minimized. | ||
function | isProtected() | |
Gets a value that indicates whether the structure or window of the Workbook is protected.
|
||
function | isVScrollBarVisible() | |
function | setVScrollBarVisible(value) | |
Gets or sets a value indicating whether the generated spreadsheet will contain a vertical scroll bar. | ||
function | getLanguageCode() | |
function | setLanguageCode(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. | ||
function | getLocale() | |
function | setLocale(value) | |
Gets or sets the Locale used by this workbook. | ||
function | getMaxColumn() | |
Gets the max column index, zero-based.
|
||
function | getMaxRow() | |
Gets the max row index, zero-based.
|
||
function | getMaxRowsOfSharedFormula() | |
function | setMaxRowsOfSharedFormula(value) | |
Gets and sets the max row number of shared formula. | ||
function | getMemorySetting() | |
function | setMemorySetting(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. | ||
function | getNumberDecimalSeparator() | |
function | setNumberDecimalSeparator(value) | |
Gets or sets the decimal separator for formatting/parsing numeric values. Default is the decimal separator of current Region. | ||
function | getNumberGroupSeparator() | |
function | setNumberGroupSeparator(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. | ||
function | getPaperSize() | |
function | setPaperSize(value) | |
Gets and sets the default print paper size. The value of the property is PaperSizeType integer constant. | ||
function | getPassword() | |
function | setPassword(value) | |
Represents Workbook file encryption password. | ||
function | getProtectionType() | |
Gets the protection type of the workbook.
The value of the property is ProtectionType integer constant. |
||
function | getQuotePrefixToStyle() | |
function | setQuotePrefixToStyle(value) | |
Indicates whether setting |
||
function | getRegion() | |
function | setRegion(value) | |
Gets or sets the regional settings for workbook. The value of the property is CountryCode integer constant. | ||
function | getRemovePersonalInformation() | |
function | setRemovePersonalInformation(value) | |
True if personal information can be removed from the specified workbook. | ||
function | getRepairLoad() | |
function | setRepairLoad(value) | |
Indicates whether the application last opened the workbook in safe or repair mode. | ||
function | getResourceProvider() | |
function | setResourceProvider(value) | |
Gets and sets the stream provider for external resource, such as loading image data for picture of type "LinkToFile". | ||
function | getShared() | |
function | setShared(value) | |
Gets or sets a value that indicates whether the Workbook is shared. | ||
function | getSheetTabBarWidth() | |
function | setSheetTabBarWidth(value) | |
Width of worksheet tab bar (in 1/1000 of window width). | ||
function | getShowTabs() | |
function | setShowTabs(value) | |
Get or sets a value whether the Workbook tabs are displayed. | ||
function | getSignificantDigits() | |
function | setSignificantDigits(value) | |
Gets and sets the number of significant digits.
The default value is |
||
function | getStreamProvider() | |
function | setStreamProvider(value) | |
Gets and sets the stream provider for external resource. | ||
function | getUpdateAdjacentCellsBorder() | |
function | setUpdateAdjacentCellsBorder(value) | |
Indicates whether update adjacent cells' border. | ||
function | getUpdateLinksType() | |
function | setUpdateLinksType(value) | |
Gets and sets how updates external links when the workbook is opened. The value of the property is UpdateLinksType integer constant. | ||
function | getWindowHeight() | |
function | setWindowHeight(value) | |
The height of the window, in unit of point. | ||
function | getWindowHeightCM() | |
function | setWindowHeightCM(value) | |
The height of the window, in unit of centimeter. | ||
function | getWindowHeightInch() | |
function | setWindowHeightInch(value) | |
The height of the window, in unit of inch. | ||
function | getWindowLeft() | |
function | setWindowLeft(value) | |
The distance from the left edge of the client area to the left edge of the window, in unit of point. | ||
function | getWindowLeftCM() | |
function | setWindowLeftCM(value) | |
The distance from the left edge of the client area to the left edge of the window. In unit of centimeter. | ||
function | getWindowLeftInch() | |
function | setWindowLeftInch(value) | |
The distance from the left edge of the client area to the left edge of the window. In unit of inch. | ||
function | getWindowTop() | |
function | setWindowTop(value) | |
The distance from the top edge of the client area to the top edge of the window, in unit of point. | ||
function | getWindowTopCM() | |
function | setWindowTopCM(value) | |
The distance from the top edge of the client area to the top edge of the window, in unit of centimeter. | ||
function | getWindowTopInch() | |
function | setWindowTopInch(value) | |
The distance from the top edge of the client area to the top edge of the window, in unit of inch. | ||
function | getWindowWidth() | |
function | setWindowWidth(value) | |
The width of the window, in unit of point. | ||
function | getWindowWidthCM() | |
function | setWindowWidthCM(value) | |
The width of the window, in unit of centimeter. | ||
function | getWindowWidthInch() | |
function | setWindowWidthInch(value) | |
The width of the window, in unit of inch. | ||
function | getWriteProtection() | |
Provides access to the workbook write protection options.
|
Method Summary | ||
---|---|---|
function | dispose() | |
Releases resources.
|
||
function | getThemeFont(type) | |
Gets the default theme font name.
|
||
function | setPageOrientationType(pageOrientationType) | |
Set the type of print orientation for the whole workbook.
|
function getStreamProvider() / function setStreamProvider(value)
function getResourceProvider() / function setResourceProvider(value)
function getAuthor() / function setAuthor(value)
function getCheckCustomNumberFormat() / function setCheckCustomNumberFormat(value)
function getEnableMacros() / function setEnableMacros(value)
function getDate1904() / function setDate1904(value)
function getProtectionType()
function getDisplayDrawingObjects() / function setDisplayDrawingObjects(value)
function getSheetTabBarWidth() / function setSheetTabBarWidth(value)
function getShowTabs() / function setShowTabs(value)
Example:
The following code hides the Sheet Tabs and Tab Scrolling Buttons for the spreadsheet.$workbook = new cells\Workbook(); // Hide the spreadsheet tabs $workbook->getSettings()->setShowTabs(false);
function getFirstVisibleTab() / function setFirstVisibleTab(value)
function isHScrollBarVisible() / function setHScrollBarVisible(value)
Example:
The following code makes the horizontal scroll bar invisible for the spreadsheet.$workbook = new cells\Workbook(); // Hide the horizontal scroll bar of the Excel file $workbook->getSettings()->setHScrollBarVisible(false);
function isVScrollBarVisible() / function setVScrollBarVisible(value)
Example:
The following code makes the vertical scroll bar invisible for the spreadsheet.$workbook = new cells\Workbook(); // Hide the vertical scroll bar of the Excel file $workbook->getSettings()->setVScrollBarVisible(false);
function getShared() / function setShared(value)
function getLanguageCode() / function setLanguageCode(value)
function getRegion() / function setRegion(value)
function getLocale() / function setLocale(value)
function getGlobalizationSettings() / function setGlobalizationSettings(value)
function getNumberDecimalSeparator() / function setNumberDecimalSeparator(value)
function getNumberGroupSeparator() / function setNumberGroupSeparator(value)
function getPassword() / function setPassword(value)
function getWriteProtection()
function isEncrypted()
function isProtected()
function isDefaultEncrypted() / function setDefaultEncrypted(value)
function isMinimized() / function setMinimized(value)
function isHidden() / function setHidden(value)
function getAutoCompressPictures() / function setAutoCompressPictures(value)
function getRemovePersonalInformation() / function setRemovePersonalInformation(value)
function getHidePivotFieldList() / function setHidePivotFieldList(value)
function getUpdateLinksType() / function setUpdateLinksType(value)
function getMaxRow()
function getMaxColumn()
function getDefaultStyleSettings()
function getWindowLeft() / function setWindowLeft(value)
function getWindowLeftInch() / function setWindowLeftInch(value)
function getWindowLeftCM() / function setWindowLeftCM(value)
function getWindowTop() / function setWindowTop(value)
function getWindowTopInch() / function setWindowTopInch(value)
function getWindowTopCM() / function setWindowTopCM(value)
function getWindowWidth() / function setWindowWidth(value)
function getWindowWidthInch() / function setWindowWidthInch(value)
function getWindowWidthCM() / function setWindowWidthCM(value)
function getWindowHeight() / function setWindowHeight(value)
function getWindowHeightInch() / function setWindowHeightInch(value)
function getWindowHeightCM() / function setWindowHeightCM(value)
function getUpdateAdjacentCellsBorder() / function setUpdateAdjacentCellsBorder(value)
function getSignificantDigits() / function setSignificantDigits(value)
function getCheckCompatibility() / function setCheckCompatibility(value)
function getCheckExcelRestriction() / function setCheckExcelRestriction(value)
function getAutoRecover() / function setAutoRecover(value)
function getCrashSave() / function setCrashSave(value)
function getDataExtractLoad() / function setDataExtractLoad(value)
function getRepairLoad() / function setRepairLoad(value)
function getBuildVersion() / function setBuildVersion(value)
function getMemorySetting() / function setMemorySetting(value)
function getPaperSize() / function setPaperSize(value)
function getMaxRowsOfSharedFormula() / function setMaxRowsOfSharedFormula(value)
function getCompliance() / function setCompliance(value)
function getQuotePrefixToStyle() / function setQuotePrefixToStyle(value)
function getFormulaSettings()
function dispose()
function getThemeFont(type)
type: Number
- A function setPageOrientationType(pageOrientationType)
pageOrientationType: Number
- A