GcSpread.Sheets Namespace > ConditionalFormats type : addSpecificTextRule Method |
var instance = new GcSpread.Sheets.ConditionalFormats(worksheet); var value; // Type: object value = instance.addSpecificTextRule(comparisonOperator, text, style, ranges);
function addSpecificTextRule( comparisonOperator : TextComparisonOperator, text : string, style : Style, ranges : Array ) : object;
var style = new GcSpread.Sheets.Style(); style.backColor = "red"; activeSheet.setValue(0, 0, "testing"); activeSheet.setValue(1, 0, "test"); activeSheet.setValue(2, 0, "a"); activeSheet.setValue(3, 0, "t"); activeSheet.getConditionalFormats().addSpecificTextRule(GcSpread.Sheets.TextComparisonOperator.Contains, "test", style, [new GcSpread.Sheets.Range(0,0,10,1)]);