com.aspose.cells

Class ErrorCheckOption

  • java.lang.Object
    • com.aspose.cells.ErrorCheckOption
public class ErrorCheckOption 
extends java.lang.Object

Error check setting applied on certain ranges.

Method Summary
intaddRange(CellArea ca)
Adds one influenced range by this setting.
intgetCountOfRange()
Gets the count of ranges that influenced by this setting.
CellAreagetRange(int index)
Gets the influenced range of this setting by given index.
booleanisErrorCheck(int errorCheckType)
Checks whether given error type will be checked.
voidremoveRange(int index)
Removes one range by given index.
voidsetErrorCheck(int errorCheckType, boolean isCheck)
Sets whether given error type will be checked.
 

    • Method Detail

      • isErrorCheck

        public boolean isErrorCheck(int errorCheckType)
        Checks whether given error type will be checked.
        Parameters:
        errorCheckType - A ErrorCheckType value. error type can be checked
        Returns:
        return true if given error type will be checked(green triangle will be shown for cell if the check failed).
      • setErrorCheck

        public void setErrorCheck(int errorCheckType, boolean isCheck)
        Sets whether given error type will be checked.
        Parameters:
        errorCheckType - A ErrorCheckType value. error type can be checked.
        isCheck - true if given error type needs to be checked(green triangle will be shown for cell if the check failed).
      • getCountOfRange

        public int getCountOfRange()
        Gets the count of ranges that influenced by this setting.
        Returns:
        the count of ranges that influenced by this setting.
      • addRange

        public int addRange(CellArea ca)
        Adds one influenced range by this setting.
        Parameters:
        ca - the range to be added.
        Returns:
        the index of the added range in the range list of this setting.
      • getRange

        public CellArea getRange(int index)
        Gets the influenced range of this setting by given index.
        Parameters:
        index - the index of range
        Returns:
        return influenced range at given index.
      • removeRange

        public void removeRange(int index)
        Removes one range by given index.
        Parameters:
        index - the index of the range to be removed.