## StringComparer::Compare method


Compares two strings using current settings.

```cpp
virtual int System::StringComparer::Compare(args_type x, args_type y) const override
```


| Parameter | Type | Description |
| --- | --- | --- |
| x | args_type | LHS string value. |
| y | args_type | RHS string value. |

### ReturnValue

Negative value if **x** preceeds **y**, zero if they are equal and positive value otherwise.

## See Also

* Typedef [args_type](../args_type/)
* Class [StringComparer](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
