## IComparer::Compare method


[Comparison](../../../system/comparison/) function.

```cpp
virtual int System::Collections::Generic::IComparer<T>::Compare(args_type x, args_type y) const =0
```


| Paramètre | Type | Description |
| --- | --- | --- |
| x | args_type | Premier objet à comparer. |
| y | args_type | Deuxième objet à comparer. |

### ReturnValue

Valeur négative si **x** est inférieur à **y**; zéro s'ils sont égaux; valeur positive si **x** est supérieur à **y**.

## Voir aussi

* Typedef [args_type](../args_type/)
* Class [IComparer](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Font for C++](../../../)
