## String::CompareTo method


'less-equals-more'スタイルで2つの文字列を比較します。現在のカルチャを使用します。

```cpp
int System::String::CompareTo(const String &str) const
```


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| str | const String\& | この文字列を [String](../) と比較します。 |

### ReturnValue

この文字列が str より小さいとみなされる場合は負の値、等しい場合は 0、より大きい場合は正の値を返します。

## 参照

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