ErrorCheckOption class

ErrorCheckOption class

Error check setting applied on certain ranges.

The ErrorCheckOption type exposes the following members:

Methods

MethodDescription
is_error_check(self, error_check_type)Checks whether given error type will be checked.
set_error_check(self, error_check_type, is_check)Sets whether given error type will be checked.
get_count_of_range(self)Gets the count of ranges that influenced by this setting.
add_range(self, ca)Adds one influenced range by this setting.
get_range(self, index)Gets the influenced range of this setting by given index.
remove_range(self, index)Removes one range by given index.

Example

from aspose.cells import CellArea, ErrorCheckType, Workbook

workbook = Workbook()
opts = workbook.worksheets[0].error_check_options
optionIdx = opts.add()
opt = opts[optionIdx]
opt.set_error_check(ErrorCheckType.INCONSIST_FORMULA, False)
opt.set_error_check(ErrorCheckType.INCONSIST_RANGE, False)
opt.set_error_check(ErrorCheckType.TEXT_DATE, False)
opt.set_error_check(ErrorCheckType.TEXT_NUMBER, False)
opt.set_error_check(ErrorCheckType.VALIDATION, False)
opt.add_range(CellArea.create_cell_area("A1", "B10"))
workbook.save(r"Book1.xlsx")

See Also