'Declaration Public Function AddSpecificTextRule( _ ByVal comparisonOperator As TextComparisonOperator, _ ByVal text As System.String, _ ByVal style As StyleInfo, _ ByVal ParamArray ranges() As CellRange _ ) As SpecificTextRule
'Usage Dim instance As ConditionalFormat Dim comparisonOperator As TextComparisonOperator Dim text As System.String Dim style As StyleInfo Dim ranges() As CellRange Dim value As SpecificTextRule value = instance.AddSpecificTextRule(comparisonOperator, text, style, ranges)
public SpecificTextRule AddSpecificTextRule( TextComparisonOperator comparisonOperator, System.string text, StyleInfo style, params CellRange[] ranges )
Parameters
- comparisonOperator
- The comparison operator.
- text
- The text for comparison.
- style
- The style that is set to the cell when the condition is met.
- ranges
- The cell ranges where the rule is applied.
Return Value
Returns the new text rule.