GC.Spread.Sheets.ConditionalFormatting 名前空間 > ConditionalFormats タイプ : addSpecificTextRule メソッド |
Javascript (Usage) | |
---|---|
var instance = new GC.Spread.Sheets.ConditionalFormatting.ConditionalFormats(worksheet); var value; // Type: object value = instance.addSpecificTextRule(comparisonOperator, text, style, ranges); |
Javascript (Specification) | |
---|---|
function addSpecificTextRule( comparisonOperator : TextComparisonOperators, text : string, style : Style, ranges : undefined ) : object; |
var style = new GC.Spread.Sheets.Style(); style.backColor = "red"; var ranges=[new GC.Spread.Sheets.Range(0,0,10,1)]; activeSheet.conditionalFormats.addSpecificTextRule(GC.Spread.Sheets.ConditionalFormatting.TextComparisonOperators.contains, "test", style, ranges); activeSheet.setValue(0, 0, "testing"); activeSheet.setValue(1, 0, "test"); activeSheet.setValue(2, 0, "a"); activeSheet.setValue(3, 0, "t");