GcSpread.Sheets Namespace > FormulaCondition type : formula Field |
var instance = new GcSpread.Sheets.FormulaCondition(customValueType, formula); var value; // Type: string value = instance.formula;
var formula : string;
var nCondition = new GcSpread.Sheets.FormulaCondition(); nCondition.customValueType = GcSpread.Sheets.CustomValueType.Formula; nCondition.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);