GcSpread.Sheets Namespace > AreaCondition type : AreaCondition Constructor |
var instance = new GcSpread.Sheets.AreaCondition(expected, formula);
function AreaCondition( expected : string, formula : string ) : AreaCondition;
var nCondition = new GcSpread.Sheets.AreaCondition(4, "$C$1"); var validator = new GcSpread.Sheets.DefaultDataValidator(nCondition); activeSheet.getCell(1, 2, GcSpread.Sheets.SheetArea.viewport).dataValidator(validator); spread.highlightInvalidData(true); activeSheet.setValue(0, 2, 3); activeSheet.setValue(1, 2, 5);