// パラメータ var condition; //タイプ: Condition var instance = new GC.Spread.Sheets.DataValidation.DefaultDataValidator(condition);
function DefaultDataValidator( condition : Condition ) : DefaultDataValidator;
パラメータ
- condition
- 条件。
// パラメータ var condition; //タイプ: Condition var instance = new GC.Spread.Sheets.DataValidation.DefaultDataValidator(condition);
function DefaultDataValidator( condition : Condition ) : DefaultDataValidator;
// 次のサンプルコードは、セルのデータを検証します。 spread.options.highlightInvalidData = true; var dv = new GC.Spread.Sheets.DataValidation.createTextLengthValidator(GC.Spread.Sheets.ConditionalFormatting.ComparisonOperators.greaterThan, 5); activeSheet.setDataValidator(0, 0, 1, 1, dv, GC.Spread.Sheets.SheetArea.viewport); activeSheet.setValue(0, 0, "abcf");
spread.options.highlightInvalidData = true; var dv = new GC.Spread.Sheets.DataValidation.createTextLengthValidator(GC.Spread.Sheets.ConditionalFormatting.ComparisonOperators.greaterThan, 5); activeSheet.setDataValidator(0, 0, 1, 1, dv, GC.Spread.Sheets.SheetArea.viewport); activeSheet.setValue(0, 0, "abcf");