## 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.PDF for C++](../../../)
