GcSpread.Sheets Namespace > ConditionalFormats type : addDuplicateRule Method |
var instance = new GcSpread.Sheets.ConditionalFormats(worksheet); var value; // Type: object value = instance.addDuplicateRule(style, ranges);
var style = new GcSpread.Sheets.Style(); style.backColor = "yellow"; activeSheet.setValue(0, 0, 50); activeSheet.setValue(1, 0, 50); activeSheet.setValue(2, 0, 11); activeSheet.setValue(3, 0, 5); activeSheet.getConditionalFormats().addDuplicateRule(style, [new GcSpread.Sheets.Range(0,0,10,1)]);