| GC.Spread.Sheets.ConditionalFormatting 名前空間 > ConditionalFormats タイプ : add2ScaleRule メソッド |
| Javascript (Usage) | |
|---|---|
var instance = new GC.Spread.Sheets.ConditionalFormatting.ConditionalFormats(worksheet); var value; // Type: object value = instance.add2ScaleRule(minType, minValue, minColor, maxType, maxValue, maxColor, ranges); | |
| Javascript (Specification) | |
|---|---|
function add2ScaleRule( minType : ScaleValueType, minValue : object, minColor : string, maxType : ScaleValueType, maxValue : object, maxColor : string, ranges : undefined ) : object; | |
activeSheet.conditionalFormats.add2ScaleRule(GC.Spread.Sheets.ConditionalFormatting.ScaleValueType.number,10,"Red",GC.Spread.Sheets.ConditionalFormatting.ScaleValueType.number,100,"Yellow", [new GC.Spread.Sheets.Range(0,0,10,3)]); activeSheet.setValue(0,0, 1,3); activeSheet.setValue(1,0, 50,3); activeSheet.setValue(2,0, 100,3);