SpreadJS Documentation
TextComparisonOperator Enumeration
Specifies the text comparison operator.
Members
MemberDescription
BeginsWithDetermines whether a cell value begins with the parameter value.
ContainsDetermines whether a cell value contains the parameter value.
DoesNotContainDetermines whether a cell value does not contain the parameter value.
EndsWithDetermines whether a cell value ends with the parameter value.
Example
This example creates a rule.
var style = new GcSpread.Sheets.Style();
style.backColor = "red";
var rule = new GcSpread.Sheets.SpecificTextRule(GcSpread.Sheets.TextComparisonOperator.Contains,"test",style);
rule.ranges=[new GcSpread.Sheets.Range(0,0,10,1)];
activeSheet.getConditionalFormats().addRule(rule);
activeSheet.setValue(0, 0, "testing");
activeSheet.setValue(1, 0, "test");
activeSheet.setValue(2, 0, "a");
activeSheet.setValue(3, 0, "t");
Inheritance Hierarchy

Object
   GcSpread.Sheets.TextComparisonOperator

See Also

Reference

GcSpread.Sheets Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.