GcSpread.Sheets Namespace > ConditionalFormats type : addFormulaRule Method |
var instance = new GcSpread.Sheets.ConditionalFormats(worksheet); var value; // Type: object value = instance.addFormulaRule(formula, style, ranges);
var style = new GcSpread.Sheets.Style(); style.backColor = "red"; activeSheet.setValue(0, 0, 2,3); activeSheet.setValue(0, 1, 1,3); activeSheet.setValue(0, 2,1,3); activeSheet.setValue(1, 0, 1,3); activeSheet.getConditionalFormats().addFormulaRule("=A1=B1+C1", style, [new GcSpread.Sheets.Range(0, 0, 5, 1) ]);