GcSpread.Sheets Namespace > CellValueCondition type : CellValueCondition Constructor |
var instance = new GcSpread.Sheets.CellValueCondition(compareType, expected, formula);
function CellValueCondition( compareType : GeneralCompareType, expected : object, formula : string ) : CellValueCondition;
var nCondition = new GcSpread.Sheets.CellValueCondition(GcSpread.Sheets.GeneralCompareType.GreaterThan, 4, "$A$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, -1);