SpreadJS Documentation
SpecificTextRule class
Represents a specific text rule based on the specified cell.
Syntax
var instance = new GcSpread.Sheets.SpecificTextRule(operator, text, style);
function SpecificTextRule;
Example
This example creates a specific text 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)];
sheet.getConditionalFormats().addRule(rule);
sheet.setValue(0, 0, "testing");
sheet.setValue(1, 0, "test");
sheet.setValue(2, 0, "a");
sheet.setValue(3, 0, "t");
Inheritance Hierarchy

Object
   GcSpread.Sheets.ConditionRuleBase
      GcSpread.Sheets.SpecificTextRule

Constructors
 NameDescription
public ConstructorSpecificTextRule ConstructorRepresents a specific text rule based on the specified cell.  
Top
Fields
 NameDescription
public FieldoperatorThe operator.  
public Fieldranges (Inherited from GcSpread.Sheets.ConditionRuleBase)
public Fieldstyle (Inherited from GcSpread.Sheets.ConditionRuleBase)
public FieldtextThe text.  
Top
Methods
 NameDescription
public Methodcontains (Inherited from GcSpread.Sheets.ConditionRuleBase)
public Methodevaluate (Inherited from GcSpread.Sheets.ConditionRuleBase)
public MethodgetExpected (Inherited from GcSpread.Sheets.ConditionRuleBase)
public Methodintersects (Inherited from GcSpread.Sheets.ConditionRuleBase)
public Methodpriority (Inherited from GcSpread.Sheets.ConditionRuleBase)
public MethodresetResets the rule.  
public MethodstopIfTrue (Inherited from GcSpread.Sheets.ConditionRuleBase)
Top
See Also

Reference

GcSpread.Sheets Namespace
Using the Specific Text Rule

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.