public class ErrorCheckOption
extends java.lang.Object
Example
Workbook workbook = new Workbook();
ErrorCheckOptionCollection opts = workbook.getWorksheets().get(0).getErrorCheckOptions();
int optionIdx = opts.add();
ErrorCheckOption opt = opts.get(optionIdx);
opt.setErrorCheck(com.aspose.cells.ErrorCheckType.INCONSIST_FORMULA, false);
opt.setErrorCheck(com.aspose.cells.ErrorCheckType.INCONSIST_RANGE, false);
opt.setErrorCheck(com.aspose.cells.ErrorCheckType.TEXT_DATE, false);
opt.setErrorCheck(com.aspose.cells.ErrorCheckType.TEXT_NUMBER, false);
opt.setErrorCheck(com.aspose.cells.ErrorCheckType.VALIDATION, false);
opt.addRange(CellArea.createCellArea("A1", "B10"));
workbook.save("Book1.xlsx");
| Modifier and Type | Method and Description |
|---|---|
int |
addRange(CellArea ca)
Adds one influenced range by this setting.
|
int |
getCountOfRange()
Gets the count of ranges that influenced by this setting.
|
CellArea |
getRange(int index)
Gets the influenced range of this setting by given index.
|
boolean |
isErrorCheck(int errorCheckType)
Checks whether given error type will be checked.
|
void |
removeRange(int index)
Removes one range by given index.
|
void |
setErrorCheck(int errorCheckType,
boolean isCheck)
Sets whether given error type will be checked.
|
public boolean isErrorCheck(int errorCheckType)
errorCheckType - ErrorCheckType. error type can be checkedpublic void setErrorCheck(int errorCheckType,
boolean isCheck)
errorCheckType - ErrorCheckType. 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).public int getCountOfRange()
public int addRange(CellArea ca)
ca - the range to be added.public CellArea getRange(int index)
index - the index of rangepublic void removeRange(int index)
index - the index of the range to be removed.See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.