Namespace EasyXLS
Class ExcelOptions
System.Object
EasyXLS.ExcelOptions
public class ExcelOptions
extends System.Object
This class stores some of the options of an Excel document, available in the main menu Tools/Options window.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionboolReturns the flag that stores if the formulas are calculated when the document is saved.Clone()Creates and returns a copy of this object.const boolReturns the flag that stores if the errors or the warnings are displayed on the console.intReturns the encryption type.doubleReturns the upper bound for values when the circular references are calculated.intReturns the maximum number of iterations when the circular references are calculated.System.StringReturns the password required for modifying the document.System.StringReturns the password required for opening the document.boolReturns true if the iterative calculation is enabled, false otherwise.boolReturns the R1C1 reference style of the document.voidsetCalculateFormulas(bool calculateFormulas) Sets the flag that stores if the formulas are calculated when the document is saved.voidsetDisplayErrors(bool displayErrors) Sets the flag that stores if the errors or the warnings are displayed on the console.voidsetEncryptionOptions(int encryptionType, System.String passwordToOpen) Sets the encryption options when a file is written and the document is encrypted.voidsetIterativeCalculation(bool enable, int maximumIterations, double maximumChange) Sets the iterative calculation option for circular references.voidsetPasswordToModify(System.String passwordToModify) Sets the password required for modifying the document.voidsetPasswordToOpen(System.String passwordToOpen) Sets the password required for opening the document.voidsetR1C1ReferenceStyle(bool isR1C1ReferenceStyle) Sets the R1C1 reference style of the document.Methods inherited from class System.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Constructor Details
- 
ExcelOptions
public ExcelOptions()Defines an instance of the ExcelOption class. 
 - 
 - 
Method Details
- 
CalculateFormulas
public bool CalculateFormulas()Returns the flag that stores if the formulas are calculated when the document is saved.- Returns:
 - true if the formulas are calculated when the document is saved, false otherwise
 - See Also:
 
 - 
setCalculateFormulas
public void setCalculateFormulas(bool calculateFormulas) Sets the flag that stores if the formulas are calculated when the document is saved.- Parameters:
 calculateFormulas- true if the formulas are calculated when the document is saved, false otherwise- See Also:
 
 - 
setIterativeCalculation
public void setIterativeCalculation(bool enable, int maximumIterations, double maximumChange) Sets the iterative calculation option for circular references.- Parameters:
 enable- true if the iterative calculation is enabled for circular referencesmaximumIterations- the maximum number of iterations when the circular references are calculatedmaximumChange- the upper bound for values when the circular references are calculated- See Also:
 
 - 
IsIterativeCalculation
public bool IsIterativeCalculation()Returns true if the iterative calculation is enabled, false otherwise.- Returns:
 - true if the iterative calculation is enabled, false otherwise
 - See Also:
 
 - 
getMaximumIterations
public int getMaximumIterations()Returns the maximum number of iterations when the circular references are calculated.- Returns:
 - the maximum number of iterations when the circular references are calculated
 - See Also:
 
 - 
getMaximumChange
public double getMaximumChange()Returns the upper bound for values when the circular references are calculated.- Returns:
 - the upper bound for values when the circular references are calculated
 - See Also:
 
 - 
IsR1C1ReferenceStyle
public bool IsR1C1ReferenceStyle()Returns the R1C1 reference style of the document.- Returns:
 - the R1C1 reference style of the document
 - See Also:
 
 - 
setR1C1ReferenceStyle
public void setR1C1ReferenceStyle(bool isR1C1ReferenceStyle) Sets the R1C1 reference style of the document.- Parameters:
 isR1C1ReferenceStyle- the R1C1 reference style of the document- See Also:
 
 - 
DisplayErrors
public const bool DisplayErrors()Returns the flag that stores if the errors or the warnings are displayed on the console.- Returns:
 - true if the errors or the warnings are displayed on the console, false otherwise
 - See Also:
 
 - 
setDisplayErrors
public void setDisplayErrors(bool displayErrors) Sets the flag that stores if the errors or the warnings are displayed on the console.- Parameters:
 displayErrors- true if the errors or the warnings are displayed on the console, false otherwise- See Also:
 
 - 
setEncryptionOptions
public void setEncryptionOptions(int encryptionType, System.String passwordToOpen) Sets the encryption options when a file is written and the document is encrypted.- Parameters:
 encryptionType- the encryption type. Possible values are available inEncryptclass.passwordToOpen- the password required for opening the document
 - 
getEncryptionType
public int getEncryptionType()Returns the encryption type. Possible values are available inEncryptclass.- Returns:
 - the encryption type
 
 - 
setPasswordToOpen
public void setPasswordToOpen(System.String passwordToOpen) Sets the password required for opening the document. If a password is set, the document is encrypted.- Parameters:
 passwordToOpen- the password required for opening the document
 - 
getPasswordToOpen
public System.String getPasswordToOpen()Returns the password required for opening the document.- Returns:
 - the password required for opening the document
 
 - 
setPasswordToModify
public void setPasswordToModify(System.String passwordToModify) Sets the password required for modifying the document.- Parameters:
 passwordToModify- the password required for modifying the document
 - 
getPasswordToModify
public System.String getPasswordToModify()Returns the password required for modifying the document.- Returns:
 - the password required for modifying the document
 
 - 
Clone
Creates and returns a copy of this object.- Returns:
 - a clone of this instance.
 
 
 -