SpreadJS Documentation
CellValueRule class
Represents a cell value conditional rule.
Syntax
var instance = new GcSpread.Sheets.CellValueRule(operator, value1, value2, style);
function CellValueRule;
Example
This example creates a cell value rule.
var style = new GcSpread.Sheets.Style();
style.backColor = "red";
var rule = new GcSpread.Sheets.CellValueRule(GcSpread.Sheets.ComparisonOperator.Between,2,100,style);
rule.ranges=[new GcSpread.Sheets.Range(0,0,5,1)];
sheet.getConditionalFormats().addRule(rule);
sheet.setValue(0,0,1,3);
sheet.setValue(1,0,45,3);
Inheritance Hierarchy

Object
   GcSpread.Sheets.ConditionRuleBase
      GcSpread.Sheets.CellValueRule

Constructors
 NameDescription
public ConstructorCellValueRule ConstructorRepresents a cell value conditional rule.  
Top
Fields
 NameDescription
public FieldoperatorThe comparison operator for the rule.  
public Fieldranges (Inherited from GcSpread.Sheets.ConditionRuleBase)
public Fieldstyle (Inherited from GcSpread.Sheets.ConditionRuleBase)
public Fieldvalue1The value of the first object.  
public Fieldvalue2The value of the second object.  
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 Cell Value Rule

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.