GC.Spread.Sheets.ConditionalFormatting 名前空間 > ConditionalFormats タイプ : addCellValueRule メソッド |
Javascript (Usage) | |
---|---|
var instance = new GC.Spread.Sheets.ConditionalFormatting.ConditionalFormats(worksheet); var value; // Type: object value = instance.addCellValueRule(comparisionOperator, value1, value2, style, ranges); |
Javascript (Specification) | |
---|---|
function addCellValueRule( comparisionOperator : ComparisonOperators, value1 : object, value2 : object, style : Style, ranges : undefined ) : object; |
var style = new GC.Spread.Sheets.Style(); style.backColor = "red"; var ranges=[new GC.Spread.Sheets.Range(0,0,5,1)]; activeSheet.conditionalFormats.addCellValueRule(GC.Spread.Sheets.ConditionalFormatting.ComparisonOperators.between, 2, 100, style, ranges); activeSheet.setValue(0,0,1,3); activeSheet.setValue(1,0,45,3);