## Version::CompareTo method


比较当前对象和指定对象所表示的版本。

```cpp
int System::Version::CompareTo(const Version &ver) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| ver | const Version\& | 用于与当前对象比较的 [Version](../) 对象 |

### ReturnValue

-1 if the version number represented by the current object is less than that represented by **ver**; 0 if the version numbers are equal; 1 if the version number represented by the current object is greater than the value represented by **ver**

## 另见

* Class [Version](../)
* Class [Version](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
