GcSpread.Sheets Namespace > NumberCondition type : NumberCondition Constructor |
var instance = new GcSpread.Sheets.NumberCondition(compareType, expected, formula);
function NumberCondition( compareType : GeneralCompareType, expected : number, formula : string ) : NumberCondition;
var nCondition = new GcSpread.Sheets.NumberCondition(GcSpread.Sheets.GeneralCompareType.GreaterThan, 5); var validator = new GcSpread.Sheets.DefaultDataValidator(nCondition) activeSheet.getCell(0, 0, GcSpread.Sheets.SheetArea.viewport).dataValidator(validator); spread.highlightInvalidData(true); activeSheet.setValue(0, 0, 5);