## StringComparer::Compare method


使用当前设置比较两个字符串。

```cpp
virtual int System::StringComparer::Compare(args_type x, args_type y) const override
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| x | args_type | 左侧字符串值。 |
| y | args_type | 右侧字符串值。 |

### ReturnValue

如果 **x** 在 **y** 之前则为负值，如果它们相等则为零，否则为正值。

## 另见

* Typedef [args_type](../args_type/)
* Class [StringComparer](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
