GC.Spread.Sheets.ConditionalFormatting Namespace : ScaleValueType Enumeration |
Member | Description |
---|---|
automax | Indicates whether to return the automatic maximum value in a specified range. |
automin | Indicates whether to return the automatic minimum value in a specified range. |
formula | Indicates whether to return the result of a formula calculation. |
highestValue | Indicates whether to return the highest value in a specified cell range. |
lowestValue | Indicates whether to return the lowest value in a specified cell range. |
number | Indicates whether to return a specified number directly. |
percent | Indicates whether to return the percentage of a cell value in a specified cell range. |
percentile | Indicates whether to return the percentile of a cell value in a specified cell range. |
activeSheet.setValue(0,0,1,3); activeSheet.setValue(1,0,15,3); activeSheet.setValue(2,0,25,3); activeSheet.setValue(3,0,-1,3); var dataBarRule = new GC.Spread.Sheets.ConditionalFormatting.DataBarRule(); dataBarRule.ranges([new GC.Spread.Sheets.Range(0,0,4,1)]); dataBarRule.minType(GC.Spread.Sheets.ConditionalFormatting.ScaleValueType.number); dataBarRule.minValue(-1); dataBarRule.maxType(GC.Spread.Sheets.ConditionalFormatting.ScaleValueType.number); dataBarRule.maxValue(40); dataBarRule.color("green"); dataBarRule.showBorder(true); dataBarRule.borderColor("orange"); dataBarRule.dataBarDirection(GC.Spread.Sheets.ConditionalFormatting.BarDirection.leftToRight); dataBarRule.negativeFillColor("yellow"); dataBarRule.useNegativeFillColor(true); dataBarRule.negativeBorderColor("red"); dataBarRule.useNegativeBorderColor(true); dataBarRule.axisPosition(GC.Spread.Sheets.ConditionalFormatting.DataBarAxisPosition.automatic); dataBarRule.axisColor("blue"); dataBarRule.showBarOnly(false); activeSheet.conditionalFormats.addRule(dataBarRule);
sheet.conditionalFormats.add2ScaleRule(GC.Spread.Sheets.ConditionalFormatting.ScaleValueType.number,1,"Yellow",GC.Spread.Sheets.ConditionalFormatting.ScaleValueType.number,50,"Blue", [new GC.Spread.Sheets.Range(0,0,20,1)]); sheet.setValue(0,0,1,3); sheet.setValue(1,0,45,3);
Object
GC.Spread.Sheets.ConditionalFormatting.ScaleValueType