GcSpread.Sheets Namespace > FormulaCondition type : FormulaCondition Constructor |
var instance = new GcSpread.Sheets.FormulaCondition(customValueType, formula);
function FormulaCondition( customValueType : CustomValueType, formula : string ) : FormulaCondition;
var nCondition = new GcSpread.Sheets.FormulaCondition(GcSpread.Sheets.CustomValueType.Formula, "A1>0"); var validator = new GcSpread.Sheets.DefaultDataValidator(nCondition) activeSheet.getCell(0, 0, GcSpread.Sheets.SheetArea.viewport).dataValidator(validator); spread.highlightInvalidData(true); activeSheet.setValue(0, 0, -4);