SpreadJS Documentation
FormulaRule class
Represents a formula rule with the specified formula and style.
Syntax
var instance = new GcSpread.Sheets.FormulaRule(formula, style);
function FormulaRule;
Example
This example creates a formula rule.
var style = new GcSpread.Sheets.Style();
style.backColor = "red";
var rule =new GcSpread.Sheets.FormulaRule("=A1=B1+C1", style);
rule.ranges = [new GcSpread.Sheets.Range(0, 0, 5, 1) ];
sheet.getConditionalFormats().addRule(rule);
sheet.setValue(0, 0, 2, 3);
sheet.setValue(0, 1, 1, 3);
sheet.setValue(0, 2, 1, 3);
sheet.setValue(1, 0, 1, 3);
Inheritance Hierarchy

Object
   GcSpread.Sheets.ConditionRuleBase
      GcSpread.Sheets.FormulaRule

Constructors
 NameDescription
public ConstructorFormulaRule ConstructorRepresents a formula rule with the specified formula and style.  
Top
Fields
 NameDescription
public FieldformulaGets the comparison formula of the text rule.  
public Fieldranges (Inherited from GcSpread.Sheets.ConditionRuleBase)
public Fieldstyle (Inherited from GcSpread.Sheets.ConditionRuleBase)
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

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.