# GC.Spread.Sheets.ConditionalFormatting.TextComparisonOperators

## Content

# Enumeration: TextComparisonOperators

[Sheets](../modules/GC.Spread.Sheets).[ConditionalFormatting](../modules/GC.Spread.Sheets.ConditionalFormatting).TextComparisonOperators

Specifies the text comparison operator.

**`example`**
```
//This example creates a rule.
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");
```

## Table of contents

### Enumeration members

- [beginsWith](GC.Spread.Sheets.ConditionalFormatting.TextComparisonOperators#beginswith)
- [contains](GC.Spread.Sheets.ConditionalFormatting.TextComparisonOperators#contains)
- [doesNotContain](GC.Spread.Sheets.ConditionalFormatting.TextComparisonOperators#doesnotcontain)
- [endsWith](GC.Spread.Sheets.ConditionalFormatting.TextComparisonOperators#endswith)

## Enumeration members

### <a id="beginswith" name="beginswith"></a> beginsWith

• **beginsWith** = `2`

Determines whether a cell value begins with the parameter value.

___

### <a id="contains" name="contains"></a> contains

• **contains** = `0`

Determines whether a cell value contains the parameter value.

___

### <a id="doesnotcontain" name="doesnotcontain"></a> doesNotContain

• **doesNotContain** = `1`

Determines whether a cell value does not contain the parameter value.

___

### <a id="endswith" name="endswith"></a> endsWith

• **endsWith** = `3`

Determines whether a cell value ends with the parameter value.
