
## compare(self, v1, v2, ignore_case) {#System.String-System.String-bool}

Compares two string values according to certain collation rules.


### Returns 


Integer that indicates the lexical relationship between the two comparands


```python

def compare(self, v1, v2, ignore_case):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| v1 | System.String | the first string |
| v2 | System.String | the second string |
| ignore_case | bool | whether ignore case when comparing values |



### See Also
* module [`aspose.cells`](../../)
* class [`GlobalizationSettings`](/cells/python-net/aspose.cells/globalizationsettings)
