SpreadJS Documentation
GeneralCompareType Enumeration
Specifies the general operator.
Members
MemberDescription
EqualsToIndicates whether the number is equal to a specified number.
GreaterThanIndicates whether the number is greater than a specified number.
GreaterThanOrEqualsToIndicates whether the number is greater than or equal to a specified number.
LessThanIndicates whether the number is less than a specified number.
LessThanOrEqualsToIndicates whether the number is less than or equal to a specified number.
NotEqualsToIndicates whether the number is not equal to a specified number.
Example
This example validates the cell data.
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");
Inheritance Hierarchy

Object
   GcSpread.Sheets.GeneralCompareType

See Also

Reference

GcSpread.Sheets Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.