GC.Spread.Sheets 名前空間 > DataValidation タイプ : createNumberValidator メソッド |
true
に設定します。
Javascript (Usage) | |
---|---|
var value; // Type: DefaultDataValidator value = GC.Spread.Sheets.DataValidation.createNumberValidator(typeOperator, v1, v2, isIntegerValue); |
Javascript (Specification) | |
---|---|
function createNumberValidator( typeOperator : ComparisonOperators, v1 : object, v2 : object, isIntegerValue : boolean ) : DefaultDataValidator; |
true
に設定します。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);