## TimeSpan::CompareTo(const SharedPtr\<Object\>\&) const method


Vergleicht das aktuelle und das angegebene Objekt.

```cpp
int System::TimeSpan::CompareTo(const SharedPtr<Object> &obj) const
```


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| obj | const SharedPtr\<Object\>\& | Das [TimeSpan](../)-Objekt, mit dem das aktuelle Objekt verglichen wird |

### ReturnValue

-1 if the current object represents the interval that is shorter than **value**; 0 if the current object represents the interval that is equal to **value**; 1 if the current object represents the interval that is longer than **value**

## Siehe auch

* Typedef [SharedPtr](../../sharedptr/)
* Class [Object](../../object/)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## TimeSpan::CompareTo(TimeSpan) const method


Vergleicht das aktuelle und das angegebene Objekt.

```cpp
int System::TimeSpan::CompareTo(TimeSpan value) const
```


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| value | TimeSpan | Das [TimeSpan](../)-Objekt, mit dem das aktuelle Objekt verglichen wird |

### ReturnValue

-1 if the current object represents the interval that is shorter than **value**; 0 if the current object represents the interval that is equal to **value**; 1 if the current object represents the interval that is longer than **value**

## Siehe auch

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