SpreadJS Documentation
UniqueRule class
Represents a unique condition rule.
Syntax
var instance = new GcSpread.Sheets.UniqueRule(style);
function UniqueRule;
Example
This example creates a unique rule.
var style = new GcSpread.Sheets.Style();
style.backColor = "red";
var rule = new GcSpread.Sheets.UniqueRule(style);
rule.ranges=[new GcSpread.Sheets.Range(0,0,10,1)];
sheet.getConditionalFormats().addRule(rule);
sheet.setValue(0, 0, 50);
sheet.setValue(1, 0, 50);
sheet.setValue(2, 0, 11);
sheet.setValue(3, 0, 5);
Inheritance Hierarchy

Object
   GcSpread.Sheets.ConditionRuleBase
      GcSpread.Sheets.UniqueRule

Constructors
 NameDescription
public ConstructorUniqueRule ConstructorRepresents a unique condition rule.  
Top
Fields
 NameDescription
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 Methodreset (Inherited from GcSpread.Sheets.ConditionRuleBase)
public MethodstopIfTrue (Inherited from GcSpread.Sheets.ConditionRuleBase)
Top
See Also

Reference

GcSpread.Sheets Namespace
Using the Unique Rule

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.