GcSpread.Sheets Namespace > ConditionalFormats type : add2ScaleRule Method |
var instance = new GcSpread.Sheets.ConditionalFormats(worksheet); var value; // Type: object value = instance.add2ScaleRule(minType, minValue, minColor, maxType, maxValue, maxColor, ranges);
function add2ScaleRule( minType : ScaleValueType, minValue : object, minColor : string, maxType : ScaleValueType, maxValue : object, maxColor : string, ranges : Array ) : object;
activeSheet.setValue(0,0, 1,3); activeSheet.setValue(1,0, 50,3); activeSheet.setValue(2,0, 100,3); activeSheet.getConditionalFormats().add2ScaleRule(1, 10, "red", 2, 100, "yellow", [new GcSpread.Sheets.Range(0, 0, 10, 3)]);