GcSpread.Sheets Namespace > DefaultDataValidator type : DefaultDataValidator Constructor |
var instance = new GcSpread.Sheets.DefaultDataValidator(condition);
function DefaultDataValidator( condition : object ) : DefaultDataValidator;
var textLengthCondition = new GcSpread.Sheets.TextLengthCondition(GcSpread.Sheets.GeneralCompareType.GreaterThan, 5); var validator = new GcSpread.Sheets.DefaultDataValidator(textLengthCondition) activeSheet.getCell(0, 0, GcSpread.Sheets.SheetArea.viewport).dataValidator(validator); spread.highlightInvalidData(true); activeSheet.setValue(0, 0, "abcf");