DataValidation

Overview

DataValidation is a class in Aspose.Cells FOSS for Typescript.

DataValidation objects let you specify validation rules, including type, operator, two formulas, and UI options like allowBlank, showDropDown, and custom messages.

This class provides 3 methods for working with DataValidation objects in Typescript programs. Available methods include: addArea, getRanges, toXml. All public members are accessible to any Typescript application after installing the Aspose.Cells FOSS for Typescript package. Properties: allowBlank, errorMessage, errorStyle, errorTitle, formula1, formula2, and 6 more.

Properties

NameTypeAccessDescription
typeDataValidationType["type"]Read/WriteGets the type.
operatorDataValidationType["operator"] | undefinedRead/WriteGets the operator.
formula1string | undefinedRead/WriteGets the formula1.
formula2string | undefinedRead/WriteGets the formula2.
allowBlankbooleanRead/WriteGets the allow blank.
showDropDownbooleanRead/WriteGets the show drop down.
showInputMessagebooleanRead/WriteGets the show input message.
inputTitlestring | undefinedRead/WriteGets the input title.
inputMessagestring | undefinedRead/WriteGets the input message.
errorTitlestring | undefinedRead/WriteGets the error title.
errorMessagestring | undefinedRead/WriteGets the error message.
errorStyleDataValidationType["errorStyle"] | undefinedRead/WriteGets the error style.

Methods

SignatureDescription
addArea(range: string)Calls addArea on this DataValidation instance.
getRanges()CellRange[]Returns the ranges.
toXml()stringCalls toXml on this DataValidation instance.

See Also