Validation

Overview

Validation is a class in Aspose.Cells FOSS for Java.

Represents a data validation rule applied to one or more cell areas.

Properties

NameTypeAccessDescription
areasList<CellArea>ReadReturns the list of cell areas covered by this validation.
typeValidationTypeReadReturns the type.
alertStyleValidationAlertTypeReadReturns the alert style.
operatorOperatorTypeReadReturns the operator.
formula1StringReadReturns the formula 1.
formula2StringReadReturns the formula 2.
ignoreBlankbooleanReadReturns the ignore blank.
inCellDropDownbooleanReadReturns the in cell drop down.
inputTitleStringReadReturns the input title.
inputMessageStringReadReturns the input message.
errorTitleStringReadReturns the error title.
errorMessageStringReadReturns the error message.
showInputbooleanReadReturns the show input.
showErrorbooleanReadReturns the show error.

Methods

SignatureDescription
getAreas()List<CellArea>Returns the list of cell areas covered by this validation.
getType()ValidationTypeReturns the type.
setType(type: ValidationType)Sets the type.
getAlertStyle()ValidationAlertTypeReturns the alert style.
setAlertStyle(alertStyle: ValidationAlertType)Sets the alert style.
getOperator()OperatorTypeReturns the operator.
setOperator(operator: OperatorType)Sets the operator.
getFormula1()StringReturns the formula 1.
setFormula1(value: String)Sets the formula 1.
getFormula2()StringReturns the formula 2.
setFormula2(value: String)Sets the formula 2.
getIgnoreBlank()booleanReturns the ignore blank.
setIgnoreBlank(ignoreBlank: boolean)Sets the ignore blank.
getInCellDropDown()booleanReturns the in cell drop down.
setInCellDropDown(inCellDropDown: boolean)Sets the in cell drop down.
getInputTitle()StringReturns the input title.
setInputTitle(value: String)Sets the input title.
getInputMessage()StringReturns the input message.
setInputMessage(value: String)Sets the input message.
getErrorTitle()StringReturns the error title.
setErrorTitle(value: String)Sets the error title.
getErrorMessage()StringReturns the error message.
setErrorMessage(value: String)Sets the error message.
getShowInput()booleanReturns the show input.
setShowInput(showInput: boolean)Sets the show input.
getShowError()booleanReturns the show error.
setShowError(showError: boolean)Sets the show error.
addArea(area: CellArea)Adds area.
removeArea(area: CellArea)Removes area.
delete()Removes this validation rule from the collection.