SpreadJS Documentation
Top10ConditionType Enumeration
Specifies the top 10 condition type.
Members
MemberDescription
BottomSpecifies the bottom condition.
TopSpecifies the top condition.
Example
This example uses the Top10ConditionType enumeration.
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)]; 
activeSheet.getConditionalFormats().addRule(rule); 
activeSheet.setValue(0, 0, 1); 
activeSheet.setValue(1, 0, 50); 
activeSheet.setValue(2, 0, 11); 
activeSheet.setValue(3, 0, 5);
Inheritance Hierarchy

Object
   GcSpread.Sheets.Top10ConditionType

See Also

Reference

GcSpread.Sheets Namespace
Using the Top 10 Rule

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.