GcSpread.Sheets Namespace > DateCondition type : formula Field |
var instance = new GcSpread.Sheets.DateCondition(compareType, expected, formula); var value; // Type: string value = instance.formula;
var formula : string;
var nCondition = new GcSpread.Sheets.DateCondition(); nCondition.compareType = GcSpread.Sheets.DateCompareType.Before; nCondition.formula = "$C$1"; var validator = new GcSpread.Sheets.DefaultDataValidator(nCondition) activeSheet.getCell(0, 0, GcSpread.Sheets.SheetArea.viewport).dataValidator(validator); spread.highlightInvalidData(true); activeSheet.setValue(0, 0, new Date(2012, 12, 12)); activeSheet.setValue(0, 2, new Date(2012, 11, 31));