Class $.wijmo.wijspread.TwoScaleRule
Constructor Attributes | Constructor Name and Description |
---|---|
$.wijmo.wijspread.TwoScaleRule(minType, minValue, minColor, maxType, maxValue, maxColor)
Constructs a new two color scale with the specified parameters.
|
Class Detail
$.wijmo.wijspread.TwoScaleRule(minType, minValue, minColor, maxType, maxValue, maxColor)
Constructs a new two color scale with the specified parameters.
var style = new $.wijmo.wijspread.Style(); style.backColor = "red"; var rule = new $.wijmo.wijspread.TwoScaleRule($.wijmo.wijspread.ScaleValueType.Number,1,"Yellow",$.wijmo.wijspread.ScaleValueType.Number,50,"Blue"); rule.ranges=[new $.wijmo.wijspread.Range(0,0,20,1)]; sheet.getConditionalFormats().addRule(rule); sheet.setValue(0,0,1,3); sheet.setValue(1,0,45,3);
- Parameters:
- minType
- The minimum scale type.
- minValue
- The minimum scale value.
- minColor
- The minimum scale color.
- maxType
- The maximum scale type.
- maxValue
- The maximum scale value.
- maxColor
- The maximum scale color.