Adds a validation rule for a specific range of cells in the spreadsheet.
Declaration
public void Add(Documents.Spreadsheet.RangeRef range, Documents.Spreadsheet.ICellValidator[] validators)
Parameters
Adds a validation rule for a specific range of cells in the spreadsheet.
Declaration
public void Add(Documents.Spreadsheet.RangeRef range, Documents.Spreadsheet.ICellValidator validator)
Parameters
GetErrorStyleForCelllink
Gets the strictest DataValidationErrorStyle among failing validators for a cell. Plain ICellValidator instances default to Stop.
Declaration
public Documents.Spreadsheet.DataValidationErrorStyle GetErrorStyleForCell(Documents.Spreadsheet.CellRef cellRef)
Parameters
Returns
GetValidatorslink
Gets all validators for a specific range.
Declaration
public IReadOnlyList<Documents.Spreadsheet.ICellValidator> GetValidators(Documents.Spreadsheet.RangeRef range)
Parameters
Returns
GetValidatorsForCelllink
Gets all validators that apply to a specific cell.
Declaration
public IReadOnlyList<Documents.Spreadsheet.ICellValidator> GetValidatorsForCell(Documents.Spreadsheet.CellRef cellRef)
Parameters
Returns
Removes a validation rule from a specific range.
Declaration
public bool Remove(Documents.Spreadsheet.RangeRef range, Documents.Spreadsheet.ICellValidator validator)
Parameters
Returns
RemoveAlllink
Removes all validators for a specific range and returns them.
Declaration
public List<Documents.Spreadsheet.ICellValidator> RemoveAll(Documents.Spreadsheet.RangeRef range)
Parameters
Returns
Validates the specified cell against all validation rules defined for its range in the spreadsheet.
Declaration
public IReadOnlyList<string> Validate(Documents.Spreadsheet.Cell cell)
Parameters
Returns