GC.Spread.Sheets 名前空間 > DataValidation タイプ : createTextLengthValidator メソッド |
Javascript (Usage) | |
---|---|
var value; // Type: DefaultDataValidator value = GC.Spread.Sheets.DataValidation.createTextLengthValidator(typeOperator, v1, v2); |
Javascript (Specification) | |
---|---|
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);