GcSpread.Sheets Namespace > ConditionalFormats type : addCellValueRule Method |
var instance = new GcSpread.Sheets.ConditionalFormats(worksheet); var value; // Type: object value = instance.addCellValueRule(comparisonOperator, value1, value2, style, ranges);
function addCellValueRule( comparisonOperator : ComparisonOperator, value1 : object, value2 : object, style : Style, ranges : Array ) : object;
var style = new GcSpread.Sheets.Style(); style.backColor = "red"; activeSheet.setValue(0,0,1,3); activeSheet.setValue(1,0,45,3); activeSheet.getConditionalFormats().addCellValueRule(GcSpread.Sheets.ComparisonOperator.Between, 2, 200, style, [new GcSpread.Sheets.Range(0,0,5,1)]);