GcSpread.Sheets Namespace > TextLengthCondition type : TextLengthCondition Constructor |
var instance = new GcSpread.Sheets.TextLengthCondition(compareType, expected, formula);
function TextLengthCondition( compareType : GeneralCompareType, expected : object, formula : string ) : TextLengthCondition;
var textLengthCondition = new GcSpread.Sheets.TextLengthCondition(GcSpread.Sheets.GeneralCompareType.GreaterThan, 5); var validator = new GcSpread.Sheets.DefaultDataValidator(textLengthCondition) activeSheet.getCell(0, 0, GcSpread.Sheets.SheetArea.viewport).dataValidator(validator); spread.highlightInvalidData(true); activeSheet.setValue(0, 0, "abcf");