Validation

Overview

Validation is a class in Aspose.Cells for NET.

Validation.AddArea(area) adds the given CellArea to the validation’s target ranges.

Properties

NameTypeAccessDescription
AreasIReadOnlyList<CellArea>ReadGets a read‑only list of CellArea objects defining the validation’s ranges
TypeValidationTypeRead/WriteGets or sets the ValidationType that specifies the kind of data validation
AlertStyleValidationAlertTypeRead/WriteGets or sets the ValidationAlertType that determines how alerts are shown
OperatorOperatorTypeRead/WriteGets or sets the OperatorType used to compare formula values
Formula1stringRead/WriteGets or sets the first formula string used in the validation rule
Formula2stringRead/Write
IgnoreBlankboolRead/WriteGets or sets a Boolean indicating whether blank cells are ignored
InCellDropDownboolRead/WriteGets or sets whether a drop‑down list is displayed in the cell
InputTitlestringRead/WriteGets or sets the title displayed in the input message dialog
InputMessagestringRead/WriteGets or sets the message shown when a cell is selected
ErrorTitlestringRead/WriteGets or sets the title displayed in the error alert dialog
ErrorMessagestringRead/WriteGets or sets the message shown when validation fails
ShowInputboolRead/WriteGets or sets a Boolean indicating whether the input message is shown
ShowErrorboolRead/WriteGets or sets whether the error alert is displayed on validation failure

Methods

SignatureDescription
AddArea(area: CellArea)Adds the given CellArea to the validation’s target ranges
RemoveArea(area: CellArea)Removes the specified CellArea from the validation’s target ranges