GC.Spread.Sheets Namespace > DataValidation type : createNumberValidator Method |
true
if the validator is set to a number.
var value; // Type: DefaultDataValidator value = GC.Spread.Sheets.DataValidation.createNumberValidator(typeOperator, v1, v2, isIntegerValue);
function createNumberValidator( typeOperator : ComparisonOperators, v1 : object, v2 : object, isIntegerValue : boolean ) : DefaultDataValidator;
true
if the validator is set to a number.spread.options.highlightInvalidData = true; var dv = GC.Spread.Sheets.DataValidation.createNumberValidator(GC.Spread.Sheets.ConditionalFormatting.ComparisonOperators.between, "5", "20", true); dv.showInputMessage(true); dv.inputMessage("Value must be between 5 and 20."); dv.inputTitle("tip"); activeSheet.setDataValidator(1, 1, dv);