SpreadJS Documentation
addIconSetRule Method
The type of icon set.
The cell ranges where the rule is applied whose item type is GcSpread.Sheets.Range.
Adds an icon set rule to the rule collection.
Syntax
var instance = new GcSpread.Sheets.ConditionalFormats(worksheet);
var value; // Type: object
value = instance.addIconSetRule(iconSetTye, ranges);
function addIconSetRule( 
   iconSetTye : IconSetType,
   ranges : Array
) : object;

Parameters

iconSetTye
The type of icon set.
ranges
The cell ranges where the rule is applied whose item type is GcSpread.Sheets.Range.

Return Value

The icon set rule added to the rule collection.
Example
This example uses the addIconSetRule method.
activeSheet.setValue(0,0,1,3);
activeSheet.setValue(1,0,15,3);
activeSheet.setValue(2,0,25,3);
activeSheet.setValue(3,0,-1,3);
activeSheet.getConditionalFormats().addIconSetRule(GcSpread.Sheets.IconSetType.FourTrafficLights, [new GcSpread.Sheets.Range(0,0,4,1)]);
See Also

Reference

ConditionalFormats type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.