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

Object
   GcSpread.Sheets.ConditionRuleBase
      GcSpread.Sheets.Top10Rule

Constructors
 NameDescription
public ConstructorTop10Rule ConstructorRepresents a top 10 condition rule.  
Top
Fields
 NameDescription
public Fieldranges (Inherited from GcSpread.Sheets.ConditionRuleBase)
public FieldrankGets the rank of the Top10Rule.  
public Fieldstyle (Inherited from GcSpread.Sheets.ConditionRuleBase)
public FieldtypeThe comparison operator for the text rule.  
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 this instance.  
public MethodstopIfTrue (Inherited from GcSpread.Sheets.ConditionRuleBase)
Top
See Also

Reference

GcSpread.Sheets Namespace
Using the Top 10 Rule

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.