GC.Spread.Sheets Namespace > DataValidation type : createTextLengthValidator Method |
var value; // Type: DefaultDataValidator value = GC.Spread.Sheets.DataValidation.createTextLengthValidator(typeOperator, v1, v2);
function createTextLengthValidator( typeOperator : ComparisonOperators, v1 : object, v2 : object ) : DefaultDataValidator;
spread.options.highlightInvalidData = true; var dv = GC.Spread.Sheets.DataValidation.createTextLengthValidator(GC.Spread.Sheets.ConditionalFormatting.ComparisonOperators.greaterThan, "4", "20"); dv.showInputMessage(true); dv.inputMessage("Number of characters must be greater than 4."); dv.inputTitle("tip"); activeSheet.setDataValidator(1, 1, dv);